Skip to content

Version 4.1.0

Version 4.1.0 #158

Workflow file for this run

name: Test
on:
pull_request:
paths-ignore:
- 'doc/**'
- 'README.md'
- 'LICENSE'
jobs:
test:
strategy:
fail-fast: true
matrix:
os: [Ubuntu, macOS, Windows]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
include:
- os: Ubuntu
image: ubuntu-22.04
- os: Windows
image: windows-2022
- os: macOS
image: macos-12
name: ${{ matrix.os }} / ${{ matrix.python-version }} ${{ matrix.suffix }}
runs-on: ${{ matrix.image }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup venv
run: python -m venv env
- name: Test on Windows
if: matrix.os == 'Windows'
run: |
env\Scripts\Activate.ps1
pip install poetry pytest-github-actions-annotate-failures
poetry install
coverage run -m pytest -v test/
- name: Test on UNIX
if: matrix.os != 'Windows'
run: |
source env/bin/activate
pip install poetry pytest-github-actions-annotate-failures
poetry install
coverage run -m pytest -v test/
- name: Coverage & codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
pip install codecov
coverage report
codecov