Bump ruff from 0.0.263 to 0.0.291 #36
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 | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.11' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pdftotext | |
run: sudo apt-get install poppler-utils | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: npm ci | |
run: npm ci | |
# https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages | |
- name: Install poetry | |
run: | | |
pipx install poetry==1.4.0 | |
poetry config virtualenvs.in-project true | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- run: poetry install -E import-json | |
- name: Test migrations | |
# Ensure our migrations are working (squashing can cause weird problems) | |
run: ENV_PATH=etc/test.env .venv/bin/python ./manage.py migrate | |
- name: Build assets | |
run: | | |
npm run build:prod | |
npm run build:dev | |
- name: Run tests | |
run: .venv/bin/pytest |