Set up ruff #22
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: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- run: pip install -r requirements.txt | |
- run: ruff check --output-format=github . | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- id: node-cache | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/.nvmrc') }}-${{ hashFiles('**/package-lock.json') }} | |
- if: steps.node-cache.outputs.cache-hit != 'true' | |
run: npm install --prefix frontend --no-audit --no-fund --progress=false | |
- run: npm run lint --prefix frontend | |
- run: npm run build --prefix frontend |