Skip to content

Merge branch '2024-update' of https://github.com/palewire/django-cala… #52

Merge branch '2024-update' of https://github.com/palewire/django-cala…

Merge branch '2024-update' of https://github.com/palewire/django-cala… #52

Workflow file for this run

name: Tests
on:
push:
workflow_dispatch:
jobs:
tests:
name: "Tests"
runs-on: ubuntu-latest
strategy:
matrix:
settings: ['postgresql',]
python: [3.6, 3.7, 3.8, 3.9]
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Set up PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: '11'
postgresql: calaccess_scraped
postgresql user: postgres
postgresql password: postgres
- id: install-pipenv
name: Install pipenv
run: |
python -m pip install --upgrade --no-cache-dir pip
python -m pip install --no-cache-dir pipenv
shell: bash
- id: cache-pipenv
name: Cache pipenv
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
- id: sync-pipfile
name: Sync pipfile
run: pipenv sync --dev
shell: bash
- name: Test
run: |
cp example/project/settings_${{ matrix.settings }}.py.template example/project/settings_local.py
make test