Merge pull request #109 from geislern/dependabot/pip/django-compresso… #181
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: Django CI workflow | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache dependency | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Setup python environment | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Check Python version | |
run: python --version | |
- name: Setup | |
run: ./Utils/setup.sh | |
- name: Static tests | |
env: | |
PYTHONWARNINGS: all | |
run: ./Utils/check.sh | |
- name: Run Tests | |
run: ./Utils/test.sh |