fix python >= 3.11 #31
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: Continuous Integration | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
validation: | |
name: Validate | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
# Uses the same action as rye | |
# See: https://github.com/astral-sh/rye/blob/main/.github/workflows/python-lint.yml | |
- name: Install the latest version of rye | |
uses: eifinger/setup-rye@v2 | |
with: | |
enable-cache: true | |
cache-prefix: 'validation-${{ matrix.python-version }}' | |
- name: Override python version required by project | |
run: echo "${{ matrix.python-version }}" > .python-version | |
- name: Run validation | |
run: rye run ci |