Add import and export functionality for App Users. #21
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: tests | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
cache-dependency-path: "requirements/*/**.txt" | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends postgresql-client | |
pip install -U -q pip-tools | |
pip-sync requirements/base/base.txt requirements/dev/dev.txt | |
- name: Bring up auxiliary services | |
run: | | |
export COMPOSE_PARALLEL_LIMIT=1 | |
while ! docker compose pull; do sleep 1; done | |
docker compose up --detach | |
- name: Run tests | |
run: | | |
export DATABASE_URL=postgresql://postgres@localhost:9062/odk_publish | |
pytest |