Skip to content

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

[pre-commit.ci] pre-commit autoupdate

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

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/