update .GitHub/workflows/tests.yml #1169
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: tests/run | |
- name: Upload coverage reports to Codecov | |
run: | | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
chmod +x codecov | |
./codecov -t ${CODECOV_TOKEN} |