-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Travis CI with GitHub Actions
- Loading branch information
Showing
10 changed files
with
164 additions
and
159 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,45 @@ | ||
name: Examples | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
examples: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: [ | ||
"src-layout", | ||
"adhoc-layout", | ||
] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: | ||
examples-v1-${{ hashFiles('**/tox.ini') }} | ||
restore-keys: | | ||
examples-v1- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U wheel | ||
python -m pip install --progress-bar=off tox -rci/requirements.txt | ||
- name: Examples | ||
run: | | ||
cd examples/${{ matrix.target }} | ||
tox -v |
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,41 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toxenv: ["check", "docs"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: | ||
lint-v1-${{ hashFiles('**/tox.ini') }} | ||
restore-keys: | | ||
lint-v1- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U wheel | ||
python -m pip install --progress-bar=off tox -rci/requirements.txt | ||
- name: Lint ${{ matrix.toxenv }} | ||
run: | | ||
tox -v -e ${{ matrix.toxenv }} |
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,68 @@ | ||
name: Test | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["pypy3", "3.6", "3.7", "3.8", "3.9"] | ||
tox-extra-versions: [ | ||
"pytest46-xdist133-coverage55", | ||
"pytest54-xdist133-coverage55", | ||
"pytest62-xdist202-coverage55", | ||
] | ||
include: | ||
# Add new helper variables to existing jobs | ||
- {python-version: "pypy3", tox-python-version: "pypy3"} | ||
- {python-version: "3.6", tox-python-version: "py36"} | ||
- {python-version: "3.7", tox-python-version: "py37"} | ||
- {python-version: "3.8", tox-python-version: "py38"} | ||
- {python-version: "3.9", tox-python-version: "py39"} | ||
# Add extra jobs to the matrix | ||
- {tox-extra-versions: "pytest46-xdist127", python-version: "pypy-2.7", tox-python-version: "pypy"} | ||
- {tox-extra-versions: "pytest46-xdist127", python-version: "pypy3", tox-python-version: "pypy3"} | ||
- {tox-extra-versions: "pytest46-xdist127", python-version: "2.7", tox-python-version: "py27"} | ||
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.5", tox-python-version: "py35"} | ||
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.6", tox-python-version: "py36"} | ||
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.7", tox-python-version: "py37"} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: | ||
test-${{ matrix.python-version }}-v1-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
test-${{ matrix.python-version }}-v1- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U wheel | ||
python -m pip install --progress-bar=off tox -rci/requirements.txt | ||
virtualenv --version | ||
pip --version | ||
tox --version | ||
- name: Tox tests | ||
run: | | ||
tox -v -e ${{ matrix.tox-python-version }}-${{ matrix.tox-extra-versions }} |
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
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 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
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