Update pytest from 8.3.3 to 8.3.4 #1420
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, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} # Continue after failures | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.10", "3.11", "3.12"] | |
experimental: [false] # These versions must pass. | |
include: | |
- os: ubuntu-latest | |
python-version: 3.13-dev | |
experimental: true | |
# - os: windows-latest | |
# python-version: 3.11-dev | |
# experimental: true | |
steps: | |
- uses: actions/checkout@v3 # Checkout repo. | |
- name: Set up production Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
if: "!endsWith(matrix.python-version, '-dev')" | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up dev Python ${{ matrix.python-version }} | |
uses: deadsnakes/action@v2.1.1 | |
if: endsWith(matrix.python-version, '-dev') | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display python version. | |
run: python --version --version && which python | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
python -m pip install -r requirements_dev.txt | |
- name: Test with pytest --cov=./ --mypy -vv | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
pytest --cov=./ --mypy -vv | |
coverage xml -i | |
- name: Upload coveralls | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: coveralls --service=github | |
- name: Codacy Coverage Reporter | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
if: matrix.os == 'ubuntu_latest' | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml | |
- name: Codecov # upload | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.xml | |
name: codecov-umbrella # Optional. | |
fail_ci_if_error: false # Allow codecov to signal fail rather than action failing. | |
verbose: true # Optional (default = false). | |
coveralls_finish: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished report | |
uses: AndreMiras/coveralls-python-action@develop | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel: true | |
parallel-finished: true | |
flag-name: github_action_tests | |
base-path: '.' | |
debug: true |