Cut extra files #48
This file contains hidden or 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: 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 |