Skip to content

Merge pull request #209 from antoinejeannot/release-v0.1.0 #48

Merge pull request #209 from antoinejeannot/release-v0.1.0

Merge pull request #209 from antoinejeannot/release-v0.1.0 #48

Workflow file for this run

name: tests
defaults:
run:
shell: bash
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
name: ${{ fromJson('{"macos-latest":"macOS","windows-latest":"Windows","ubuntu-latest":"Ubuntu"}')[matrix.os] }} ${{ matrix.python-version }} ${{ matrix.nox-session}}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Python - ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Run Tests
run: make ci_tests
env:
OS_NAME: "${{ matrix.os }}"
PYTHON_VERSION: "${{ matrix.python-version }}"
- name: 'Upload coverage report'
if: ${{matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' && github.ref == 'refs/heads/main'}}
uses: actions/upload-artifact@v3
with:
name: coverage
path: docs/coverage
retention-days: 1