Skip to content

test: coverage setup #57

test: coverage setup

test: coverage setup #57

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: linux
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .\[test\]
pip install codecov
pip freeze
- name: Lint with ruff
run: |
ruff check
- name: Test with pytest
run: |
pytest
- name: Upload coverage results
run: |
codecov