Skip to content

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

[pre-commit.ci] pre-commit autoupdate

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

Workflow file for this run

name: Run tests
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup yt_aspect
run: |
python -m pip install -e .[test]
- name: Test with pytest
run: pytest --cov=./ --cov-report=xml:coverage/coverage.xml
# https://github.com/marketplace/actions/codecov#example-workflowyml-with-codecov-action
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./coverage/