daniel-slaugh is running HydroServer Tests on refs/pull/145/merge #740
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: HydroServer Tests | |
run-name: ${{ github.actor }} is running HydroServer Tests on ${{ github.ref }} | |
on: [push, pull_request] | |
jobs: | |
Run-Tests: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
strategy: | |
matrix: | |
# Run in all these versions of Python | |
python-version: [ "3.10" ] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pytest | |
pip install pytest-django | |
- name: Run tests | |
run: | | |
python -m pytest --import-mode=append tests/ | |
env: | |
DJANGO_SETTINGS_MODULE: hydroserver.settings | |
LOCAL_CSV_STORAGE: ~/ | |
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres |