aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml37
1 files changed, 23 insertions, 14 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0ce1c2d5..d97c77f2 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -9,6 +9,10 @@ on:
permissions:
contents: read
+env:
+ # turns off tox's output redirection so we can debug package installation
+ TOX_OPTIONS: -vv
+
jobs:
lint:
runs-on: ubuntu-latest
@@ -23,32 +27,34 @@ jobs:
- name: Install packages
run: pip install tox
- name: Run Tox
- run: tox -e mypy,package_readme
+ run: tox $TOX_OPTIONS -e lint,package_readme
test:
runs-on: ${{ matrix.platform }}
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
strategy:
+ fail-fast: false
matrix:
- python-version: ["3.7", "3.10"]
- platform: [ubuntu-latest, macos-latest, windows-latest]
- exclude: # Only test on the latest supported stable Python on macOS and Windows.
+ python-version: ["3.8", "3.11", "3.12"]
+ platform: [ubuntu-latest]
+ include: # Only test on the latest supported stable Python on macOS and Windows.
- platform: macos-latest
- python-version: 3.7
+ python-version: 3.11
- platform: windows-latest
- python-version: 3.7
+ python-version: 3.11
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
+ allow-prereleases: true
- name: Install packages
run: pip install tox coverage
- name: Run Tox
- run: tox -e py-cov
- - name: Run Tox without lxml
- run: tox -e py-cov-nolxml
+ run: tox $TOX_OPTIONS -e py-cov
+ - name: Run Tox without extra dependencies
+ run: tox $TOX_OPTIONS -e py-cov-noextra
- name: Produce coverage files
run: |
coverage combine
@@ -59,7 +65,10 @@ jobs:
file: coverage.xml
flags: unittests
name: codecov-umbrella
- fail_ci_if_error: true
+ # TODO(anthrotype): Set fail_ci_if_error: true if/when Codecov becomes less flaky
+ fail_ci_if_error: false
+ # see https://github.com/codecov/codecov-action/issues/557
+ token: ${{ secrets.CODECOV_TOKEN }}
test-cython:
runs-on: ubuntu-latest
@@ -69,11 +78,11 @@ jobs:
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
- python-version: "3.10"
+ python-version: "3.11"
- name: Install packages
run: pip install tox
- name: Run Tox
- run: tox -e py-cy-nolxml
+ run: tox $TOX_OPTIONS -e py-cy
test-pypy3:
runs-on: ubuntu-latest
@@ -83,8 +92,8 @@ jobs:
- name: Set up Python pypy3
uses: actions/setup-python@v4
with:
- python-version: "pypy-3.7"
+ python-version: "pypy-3.9"
- name: Install packages
run: pip install tox
- name: Run Tox
- run: tox -e pypy3-nolxml
+ run: tox $TOX_OPTIONS -e pypy3