-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI to GitHub Actions, add linting, refresh URLs
- Loading branch information
1 parent
082457e
commit 138d886
Showing
14 changed files
with
200 additions
and
499 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
package: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- name: Check packages | ||
run: | | ||
python3.7 -m pip install wheel twine rstcheck; | ||
python3.7 setup.py sdist bdist_wheel; | ||
rstcheck README.rst CHANGES.rst | ||
python3.7 -m twine check dist/* | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- name: Install dependencies | ||
run: python -m pip install nox | ||
- name: Lint the code | ||
run: nox -s lint | ||
|
||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
name: ${{ fromJson('{"macos-latest":"macOS","windows-latest":"Windows","ubuntu-latest":"Ubuntu"}')[matrix.os] }} ${{ matrix.python-version }} ${{ matrix.nox-session}} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python - ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Python 3 to run nox | ||
if: matrix.python-version != '3.7' | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3" | ||
|
||
- name: Install dependencies | ||
run: python -m pip install nox | ||
|
||
- name: Run tests | ||
run: nox -s test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
include *.md | ||
include *.rst | ||
include *.txt | ||
include LICENSE | ||
include .coveragerc | ||
include tox.ini | ||
include artisanci/packages/virtualbox/LICENSE | ||
include artisanci/packages/README.md | ||
exclude build_docs.py | ||
exclude .mention-bot | ||
recursive-include docs * | ||
recursive-exclude docs/build * | ||
recursive-include docs Makefile | ||
recursive-include tests *.py |
Oops, something went wrong.