Skip to content

Tests

Tests #87

Workflow file for this run

name: Tests
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install package
run: |
pip install -e .
- name: Install pytest
run: |
pip install pytest
pip install pytest-cov
- name: Run tests
run: pytest -v tests/ --cov=sphinx_astrorefs/ --cov-report=term --cov-report=xml
- uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}