Skip to content

kjlippold is running HydroServer Tests on refs/heads/29-sensorthings-bug-fixes #751

kjlippold is running HydroServer Tests on refs/heads/29-sensorthings-bug-fixes

kjlippold is running HydroServer Tests on refs/heads/29-sensorthings-bug-fixes #751

Workflow file for this run

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