Added support for Eva readers with known aliases #4
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: Test Evagram Input Module | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
paths: | |
- src/evagram/website/backend/input_app/** | |
- src/evagram/website/backend/api/models.py | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_PASSWORD: ${{secrets.DB_PASSWORD}} | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Install Evagram Input Module | |
run: | | |
python -m pip install --upgrade pip | |
pip install evagram_input@git+https://github.com/GEOS-ESM/evagram_input --upgrade | |
- name: Install Dependencies | |
run: pip install . -r requirements.txt | |
- name: Create PGPASS File | |
run: | | |
echo 127.0.0.1:5432:test_evagram:postgres:${{secrets.DB_PASSWORD}} >> ~/.pgpass | |
chmod 600 ~/.pgpass | |
export PGPASSFILE='/home/runner/.pgpass' | |
- name: Run Evagram Input Tests | |
run: python src/evagram/website/backend/manage.py test input_app.test_input_tool | |
env: | |
DB_PASSWORD: ${{secrets.DB_PASSWORD}} |