Migrate build setup to rye #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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rye | |
uses: eifinger/setup-rye@v4 | |
- name: Install dependencies | |
run: rye sync | |
- name: Run linters | |
run: rye lint | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rye | |
uses: eifinger/setup-rye@v4 | |
- name: Install dependencies | |
run: rye sync | |
- name: Run tests | |
run: rye test |