Bump certifi from 2022.12.7 to 2023.7.22 #188
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
#----------------------------------- code-quality -----------------------------------# | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry==1.4.0 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: poetry install --with lint | |
- name: Run lint | |
run: | | |
poetry run ruff . | |
#-------------------------------------- tests ---------------------------------------# | |
tests: | |
needs: code-quality | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry==1.4.0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: poetry install --with test --extras parametrize | |
- name: Run tests | |
run: poetry run pytest | |
#------------------------------------ doc-tests -------------------------------------# | |
test_docs_job: | |
needs: code-quality | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry==1.4.0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: poetry install --with docs --extras plotting | |
- name: make the sphinx docs | |
run: | | |
poetry run make -C docs clean | |
poetry run make -C docs html | |
#--------------------------------- test benchmarks ----------------------------------# | |
test_benchmarks: | |
needs: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry==1.4.0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: poetry install --with test | |
- name: Run benchmarks | |
run: | | |
poetry run pytest ./benchmarks/ | |
#---------------------------------- code-coverage ---------------------------------# | |
code-coverage: | |
needs: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry==1.4.0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: poetry install --with test | |
- name: Run tests with code coverage | |
run: | | |
poetry run pytest --cov |