Fix building docs #134
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: Run tox | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
build: | |
name: "Project tests via tox" | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: django_app | |
POSTGRES_PASSWORD: django_app | |
ports: | |
- 5432:5432 | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python: [3.5, 3.6, 3.8, "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
env: | |
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
cat dependencies.txt | xargs sudo apt install -y | |
python -m pip install --upgrade pip | |
pip install 'tox<4' 'tox-gh-actions<3' | |
- name: Start redis | |
run: sudo systemctl start redis-server | |
- name: Setup tox, dependencies, and run tests | |
run: make github-tox |