askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
tests.yml · 1.2 KB · 41 lines
| 1 | name: Tests |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | branches: [main] |
| 8 | |
| 9 | jobs: |
| 10 | pytest: |
| 11 | name: Python ${{ matrix.python-version }} |
| 12 | runs-on: ubuntu-latest |
| 13 | |
| 14 | strategy: |
| 15 | fail-fast: false |
| 16 | matrix: |
| 17 | python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] |
| 18 | |
| 19 | steps: |
| 20 | - name: Check out repository |
| 21 | uses: actions/checkout@v4 |
| 22 | |
| 23 | - name: Set up Python |
| 24 | uses: actions/setup-python@v5 |
| 25 | with: |
| 26 | python-version: ${{ matrix.python-version }} |
| 27 | |
| 28 | - name: Install package and test dependencies |
| 29 | run: | |
| 30 | python -m pip install --upgrade pip |
| 31 | python -m pip install -e ".[test]" |
| 32 | # `exchange` (cryptography) so the box-to-box exchange tests run |
| 33 | # rather than skip. Separate, so an interpreter with no |
| 34 | # cryptography wheel (a new free-threaded build, say) still runs |
| 35 | # everything else; the exchange tests skip cleanly without it, |
| 36 | # and the warning says they did. |
| 37 | python -m pip install -e ".[test,exchange]" \ |
| 38 | || echo "::warning::exchange extra did not install on Python ${{ matrix.python-version }}; exchange tests will skip" |
| 39 | |
| 40 | - name: Run tests |
| 41 | run: pytest |