Skip to content

willbakst is testing the package #829

willbakst is testing the package

willbakst is testing the package #829

Workflow file for this run

name: tests
run-name: ${{ github.actor }} is testing the package
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1.3.1
- name: Install dependencies
run: poetry install --with dev --all-extras
- name: Run Tests
run: poetry run pytest tests/ --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml,!./cache
flags: tests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true