Skip to content

Commit e2f4510

Browse files
committed
manual test
1 parent 50ef07f commit e2f4510

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Workflow that runs on code changes after merge to main.
2+
3+
name: Manual Testing
4+
on:
5+
workflow_dispatch:
6+
7+
env:
8+
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
9+
POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
10+
11+
jobs:
12+
Test:
13+
permissions:
14+
contents: "read"
15+
# Required to auth against gcp
16+
id-token: "write"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repo
20+
uses: actions/checkout@v2
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: '3.11'
28+
- uses: "google-github-actions/auth@v2"
29+
with:
30+
workload_identity_provider: "projects/322898545428/locations/global/workloadIdentityPools/policyengine-research-id-pool/providers/prod-github-provider"
31+
service_account: "policyengine-research@policyengine-research.iam.gserviceaccount.com"
32+
- name: Install package
33+
run: uv pip install -e .[dev] --system
34+
- name: Test documentation builds
35+
run: make documentation
36+
- name: Deploy documentation
37+
uses: JamesIves/github-pages-deploy-action@releases/v3
38+
with:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
BRANCH: gh-pages # The branch the action should deploy to.
41+
FOLDER: docs/_build/html # The folder the action should deploy.
42+
CLEAN: true # Optionally delete the contents of the release branch before deploying.jk
43+

0 commit comments

Comments
 (0)