Add documentation #339
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: tests | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
python-version: | |
- 3.13.0 | |
- 3.13t | |
name: ${{ matrix.os }} / ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
if: "!endsWith(matrix.python-version, 't')" | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: set up python ${{ matrix.python-version }} | |
uses: astral-sh/setup-uv@v3 | |
if: endsWith(matrix.python-version, 't') | |
- if: endsWith(matrix.python-version, 't') | |
run: | | |
uv python install ${{ matrix.python-version }} | |
uv venv --python ${{ matrix.python-version }} | |
. .venv/bin/activate | |
echo PATH=$PATH >> $GITHUB_ENV | |
uv pip install pip | |
- run: python --version --version && which python | |
- name: system info | |
run: | | |
uname -a | |
cat /proc/cpuinfo | |
- name: install dependencies & cereggii | |
run: | | |
python -m pip install --upgrade pip | |
pip -V | |
pip install .[dev] | |
- name: test with pytest | |
run: | | |
pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml | |
- name: upload pytest test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pytest-results-${{ matrix.python-version }} | |
path: junit/test-results-${{ matrix.python-version }}.xml | |
if: ${{ always() }} |