Skip to content

Commit 90df072

Browse files
authored
Merge branch 'master' into patch-issue-2364/2365
2 parents 6594fd0 + 328db67 commit 90df072

38 files changed

Lines changed: 2287 additions & 148 deletions

.coverage

-52 KB
Binary file not shown.

.github/workflows/pr.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,32 @@ jobs:
5252
password: ${{ secrets.POLICYENGINE_DOCKER }}
5353
- name: Build container
5454
run: docker build -t ghcr.io/policyengine/policyengine docker
55+
test_env_vars:
56+
name: Test environment variables
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Checkout repo
60+
uses: actions/checkout@v4
61+
- name: Set up Python
62+
uses: actions/setup-python@v5
63+
with:
64+
python-version: "3.11"
65+
- name: Auth
66+
uses: google-github-actions/auth@v2
67+
with:
68+
credentials_json: ${{ secrets.GCP_SA_KEY }}
69+
- name: Install dependencies
70+
run: make install
71+
- name: Run environment variable tests
72+
run: pytest tests/env_variables/test_environment_variables.py
73+
env:
74+
POLICYENGINE_GITHUB_MICRODATA_AUTH_TOKEN: ${{ secrets.POLICYENGINE_GITHUB_MICRODATA_AUTH_TOKEN }}
75+
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
76+
POLICYENGINE_DB_PASSWORD: ${{ secrets.POLICYENGINE_DB_PASSWORD }}
5577
test:
5678
name: Test
5779
runs-on: ubuntu-latest
80+
needs: test_env_vars
5881
container:
5982
image: policyengine/policyengine-api
6083
steps:
@@ -82,4 +105,4 @@ jobs:
82105
uses: codecov/codecov-action@v5
83106
with:
84107
token: ${{ secrets.CODECOV_TOKEN }}
85-
slug: PolicyEngine/policyengine-api
108+
slug: PolicyEngine/policyengine-api

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ jobs:
9292
- name: Build container
9393
run: docker build -t ghcr.io/policyengine/policyengine docker
9494
- name: Push container
95-
run: docker push ghcr.io/policyengine/policyengine
95+
run: docker push ghcr.io/policyengine/policyengine

0 commit comments

Comments
 (0)