Correct answer reveal mechanic #208
Workflow file for this run
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: Test | Lint | Format | on PR | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: test-lint-format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
- name: Set up Python | |
run: uv python install 3.12 | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Ruff Lint | |
run: uvx ruff check --output-format=github . | |
- name: Ruff Format | |
run: uvx ruff format | |
- name: HTML Template Lint (djlint) | |
run: uv run djlint openday_scavenger/ | |
- name: Run tests | |
run: uv run pytest tests | |
- name: Upload coverage report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: .coverage | |
include-hidden-files: true |