-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add github actions * install pip, setuptools with --user
- Loading branch information
Showing
6 changed files
with
84 additions
and
6 deletions.
There are no files selected for viewing
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,52 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master, test] | ||
pull_request: | ||
branches: [master, test] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, windows, macos] | ||
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', 'pypy3'] | ||
include: | ||
# https://github.com/pydoit/doit/issues/372 | ||
- os: macos | ||
pytest-args: -k 'not(cmd_auto or TestFileWatcher)' | ||
- os: macos | ||
python-version: pypy3 | ||
pytest-args: -k 'not(cmd_auto or TestFileWatcher or remove_all or ForgetAll)' | ||
exclude: | ||
- os: windows | ||
python-version: pypy3 | ||
steps: | ||
- if: ${{ matrix.os == 'ubuntu' }} | ||
run: sudo apt-get install strace | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- run: pip install --user -U pip wheel setuptools | ||
- id: pip-cache | ||
run: echo "::set-output name=dir::$(pip cache dir)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'dev_requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.python-version }}- | ||
${{ runner.os }}-pip- | ||
- run: pip install . -r dev_requirements.txt python-coveralls | ||
- run: pip freeze | ||
- run: pip check | ||
- run: doit pyflakes | ||
- run: py.test -vv ${{ matrix.pytest-args }} | ||
- if: ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.8' }} | ||
run: | | ||
doit coverage | ||
coveralls || echo "TODO: remove when run on a repo that is set up" |
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,25 @@ | ||
name: Website | ||
|
||
on: | ||
push: | ||
branches: [master, test] | ||
pull_request: | ||
branches: [master, test] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: sudo apt-get install hunspell hunspell-en-us | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
- run: pip install -U pip wheel setuptools | ||
- run: pip install . -r doc_requirements.txt -r dev_requirements.txt | ||
- run: pip freeze | ||
- run: doit -v2 website | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Website | ||
path: ./doc/_build |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
|
||
pyflakes | ||
pytest>=5.4.1 | ||
coverage>=4.0 | ||
coverage>=4.0,<5 | ||
doit-py>=0.4.0 |
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
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
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