Add Rye example #1
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: Rye workflow | |
on: | |
push: | |
paths: | |
- 'rye-demo/**' | |
- '.github/workflows/rye.yml' | |
defaults: | |
run: | |
working-directory: ./rye-demo | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Rye | |
uses: eifinger/setup-rye@v3 | |
with: | |
version: '0.35.0' | |
- name: Sync | |
run: rye sync | |
- name: Lint | |
run: rye lint | |
- name: Run tests | |
run: rye run pytest |