fix: python requires >= 3.10 #62
Workflow file for this run
This file contains hidden or 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: ci | |
| on: [ push, pull_request ] | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| os: [ubuntu-latest] | |
| fail-fast: true | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| key: ${{ runner.os }}-uv-${{ hashFiles('**/requirements-dev.txt') }} | |
| path: | | |
| ~/.cache/uv | |
| ~/.cache/pip | |
| venv | |
| - name: Install UV | |
| run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
| - name: Setup virtual environment | |
| run: uv venv -p python3 venv | |
| - name: Install dependencies | |
| run: | | |
| source venv/bin/activate | |
| uv pip install --upgrade -r requirements-dev.txt | |
| uv pip install -e . | |
| - name: Build Cython extensions | |
| run: | | |
| source venv/bin/activate | |
| make clean build USE_CYTHON=1 | |
| - name: Run lint and tests | |
| run: | | |
| source venv/bin/activate | |
| make ci | |
| - name: Run benchmarks | |
| run: | | |
| source venv/bin/activate | |
| pytest benchmark/test_pybmoore.py |