Validate dependency files are in sync #152
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: Tests | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python: [3.9, "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Create virtualenv | ||
run: python3 -m venv venv | ||
- uses: actions/cache@v3 | ||
with: | ||
path: venv/ | ||
key: ${{ runner.os }}-${{ matrix.python }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }} | ||
- name: Use virtualenv | ||
run: source venv/bin/activate | ||
- name: Install dependencies | ||
run: pip install -r requirements.txt -r requirements-dev.txt | ||
- name: Validate dependencies | ||
uses: PeterJCLaw/validate-generated-files@v1 | ||
if: matrix.python == "3.10" | ||
Check failure on line 40 in .github/workflows/test.yml GitHub Actions / TestsInvalid workflow file
|
||
with: | ||
command: ./script/compile-requirements.sh --no-upgrade | ||
files: requirements*.txt | ||
- name: Use the dev configuration | ||
run: cp helpdesk/helpdesk/configuration.dev.py helpdesk/helpdesk/configuration.py | ||
- name: Static type checking | ||
run: make type | ||
- name: Lint | ||
run: make lint | ||
- name: Unit tests | ||
run: make test | ||
- name: Django Static Checks | ||
run: make check |