Skip to content

[pre-commit.ci] pre-commit autoupdate #491

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #491

Workflow file for this run

name: Build
on:
push:
branches:
- master
- release/*
pull_request:
jobs:
test:
name: Python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 9
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.0.0
with:
python-version: ${{ matrix.python-version }}
- uses: snok/install-poetry@v1.3.1
with:
virtualenvs-create: true
- name: Install dependencies
run: |
poetry config experimental.new-installer false
poetry config virtualenvs.in-project true
poetry install --no-interaction
- name: Run tests with Ward
run: |
poetry run coverage run -m ward
poetry run coverage xml -i
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false