Skip to content

add tests/run script #1148

add tests/run script

add tests/run script #1148

Workflow file for this run

name: Run tests
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.11
# - 3.12.0-beta.3 # segmentation fault
# github.com/actions/python-versions/blob/main/versions-manifest.json
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: ./install-editable-dev
- name: Install pytest
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
- name: Run tests
run: pytest tests/ --cov=src/
- name: Upload coverage reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}