feat: Add breadcrumbs for categories #50
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: Tests and Linters | |
"on": | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Add gettext for compilemessages | |
run: sudo apt-get install -y gettext | |
- name: Install Python Dependencies | |
run: | | |
python3.12 -m pip install --upgrade pip | |
python3.12 -m pip install hatch hatchling pre-commit | |
- name: Install Frontend Dependencies | |
run: yarn install | |
- name: Setup Env Variables | |
run: sed s/SECRET_KEY=/SECRET_KEY=fake-key/ example.env > .env | |
- name: Run pre-commit | |
run: pre-commit run --all-files | |
- name: Run Python Tests in Docker | |
run: | | |
hatch run ./manage.py compilemessages | |
docker compose run django pytest | |
- name: Run Frontend Tests | |
run: yarn test |