Develop with rye (#50) #90
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 | |
paths: | |
- "*.py" | |
- esgpull/** | |
- tests/** | |
- .github/workflows/ci.yml | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "*.py" | |
- esgpull/** | |
- tests/** | |
- .github/workflows/ci.yml | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
python-version: | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install the latest version of rye | |
uses: eifinger/setup-rye@v4 | |
with: | |
enable-cache: true | |
cache-prefix: ${{ matrix.python-version }} | |
- name: Pin python-version ${{ matrix.python-version }} | |
run: rye pin ${{ matrix.python-version }} | |
- name: Sync dependencies | |
run: rye sync | |
- name: Run tests | |
run: rye test |