Include playground and examples in linting #32
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: | # abort if the lockfile changes | |
rye sync | |
git diff requirements.lock | |
- 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: | # abort if the lockfile changes | |
rye sync | |
git diff requirements.lock | |
- name: Run tests | |
run: rye test |