-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4194258
commit 2ca1891
Showing
10 changed files
with
128 additions
and
697 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 |
---|---|---|
@@ -1,50 +1,58 @@ | ||
name: test | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags-ignore: | ||
- v* | ||
|
||
schedule: | ||
- cron: '0 16 * * *' # Run daily at 14:00 UTC | ||
|
||
pull_request: | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ ! contains(github.ref, github.event.repository.default_branch) }} | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: ["3.7", "3.8", "3.9", "3.10", "~3.11.0-0", "pypy-3.8"] | ||
os: [ubuntu-latest, windows-latest] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
include: | ||
- python: "3.7" | ||
tox_env: "py37" | ||
- python: "3.8" | ||
tox_env: "py38" | ||
- python: "3.9" | ||
tox_env: "py39" | ||
- python: "3.10" | ||
tox_env: "py310" | ||
- python: "~3.11.0-0" # see https://github.com/actions/setup-python/issues/213#issuecomment-1146676713 | ||
tox_env: "py311" | ||
- python: "pypy-3.8" | ||
tox_env: "pypy3" | ||
- python-version: pypy3.9 | ||
tox-env: py3.9 | ||
- python-version: 3.11-dev | ||
tox-env: devel | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
|
||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install tox | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Cache tox environments | ||
uses: actions/cache@v3 | ||
with: | ||
path: .tox | ||
# increment if issues with cache | ||
key: tox-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-01 | ||
- name: Test | ||
run: tox -e ${{ matrix.tox_env }} | ||
key: tox-ubuntu-latest-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} | ||
restore-keys: | | ||
tox-ubuntu-latest-${{ matrix.python-version }}- | ||
- name: Run tests | ||
if: ${{ ! matrix.tox-env }} | ||
run: tox -e py${{ matrix.python-version }} | ||
|
||
- name: Run tests | ||
if: ${{ matrix.tox-env }} | ||
run: tox -e ${{ matrix.tox-env }} |
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
Oops, something went wrong.