Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pytest during PRs #801

Merged
merged 7 commits into from
Sep 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,17 @@ jobs:
test:
runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name }}
name: test

container:
image: ghcr.io/hotosm/fmtm/backend:ci-${{ github.ref_name }}
image: ghcr.io/hotosm/fmtm/backend:ci-${{ github.base_ref || github.ref_name }}
env:
ODK_CENTRAL_URL: https://central-proxy
ODK_CENTRAL_USER: [email protected]
ODK_CENTRAL_PASSWD: odk
OSM_CLIENT_ID: test
OSM_CLIENT_SECRET: test
OSM_SECRET_KEY: test
# Fix why env. vars not working below
# OSM_CLIENT_ID: ${{ env.OSM_TEST_CLIENT_ID }}
# OSM_CLIENT_SECRET: ${{ env.OSM_TEST_CLIENT_SECRET }}
# OSM_SECRET_KEY: ${{ env.OSM_TEST_SECRET_KEY }}
# FRONTEND_MAIN_URL: "ui-main:8080"
# FRONTEND_MAP_URL: "ui-map:8081"
ODK_CENTRAL_URL: ${{ vars.ODK_CENTRAL_URL }}
ODK_CENTRAL_USER: ${{ vars.ODK_CENTRAL_USER }}
ODK_CENTRAL_PASSWD: ${{ vars.ODK_CENTRAL_PASSWD }}
OSM_CLIENT_ID: ${{ vars.OSM_CLIENT_ID }}
OSM_CLIENT_SECRET: ${{ vars.OSM_CLIENT_SECRET }}
OSM_SECRET_KEY: ${{ vars.OSM_SECRET_KEY }}
options: --user root

services:
Expand Down
Loading