Fix read the docs import error #307
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# * Run static checks only for Ubuntu and Python 3.8 | |
# * Run test suits for all platforms and Python versions | |
jobs: | |
static-checks: | |
name: Static checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-python | |
with: | |
python-version: "3.8" | |
requirements: tox | |
- name: Run static checks with Tox | |
shell: bash | |
run: tox -m static | |
software-tests: | |
name: Software tests | |
strategy: | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
# - "3.12" | |
os: | |
- ubuntu-latest | |
- macos-latest | |
# - windows-latest | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-python | |
with: | |
python-version: "${{ matrix.python-version }}" | |
requirements: tox | |
# Instead of running all tests in one task (i.e., `tox -m tests`), | |
# we'll instead run them one-by-one, so that it's easier to | |
# identify and debug failing tests in the GitHub UI. | |
- name: Run unit tests | |
shell: bash | |
run: tox -e tests-unit | |
env: | |
DIFF_AGAINST: HEAD | |
- name: Run doctests | |
shell: bash | |
run: tox -e doctests | |
- name: Run E2E tests | |
shell: bash | |
run: tox -e tests-e2e | |
- name: Test the `extras` utilities | |
shell: bash | |
run: tox -e tests-extras | |
# Upload coverage reports to Codecov and Codacy. | |
- name: Upload coverage to codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
OS: "${{ matrix.os }}" | |
PYTHON: "${{ matrix.python-version }}" | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
verbose: true | |
- name: Upload coverage to codacy | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml |