.github/workflows/test-suite-unreleased-django.yaml
name: Test unreleased Django
on:
schedule:
- cron: '30 10 * * 1-5'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
name: Test latest stable Python with unreleased Django
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
restore-keys: ${{ runner.os }}-pip
- name: Install dependencies
run: |
pip install --upgrade https://github.com/django/django/archive/main.tar.gz
pip install --upgrade -r test-requirements.txt
pip install .
- name: Run non-live tests
env:
SKIP_LIVE_TESTS: true
run: coverage run -m pytest