Skip to content

Freezing OS versions due to GH Action issue #161

Freezing OS versions due to GH Action issue

Freezing OS versions due to GH Action issue #161

Workflow file for this run

name: Django CI
on: [pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python: ["3.7", "3.8", "3.9"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Selenium Chrome Driver (OSX)
if: runner.os == 'macOs'
run: brew install chromedriver --cask
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
env:
SECRET_KEY: fake-secret-key
run: |
cp .env.example .env
python manage.py migrate
python manage.py test