Test on multiple versions of Python. #170
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: [pull_request, push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ['3.10', 3.11, 3.12, pypy-3.10] | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- uses: actions/checkout@v3 | |
- run: python3 util/install_deps.py | |
- run: pip install . | |
- uses: actions/cache@v3 | |
with: | |
key: cache-dir | |
path: /home/runner/.cache/simalq | |
- run: pip install pytest | |
- run: pytest tests |