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

Add workflow call #47

Merged
merged 14 commits into from
Sep 12, 2023
15 changes: 11 additions & 4 deletions .github/workflows/report.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
name: Report
on:
schedule:
- cron: "0 1 * * 1"
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
environment: "non-terarium ta1 deployments"
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
Expand All @@ -23,5 +22,13 @@ jobs:
run: |
poetry install
- name: Run report
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_PROD_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_PROD_SECRET_ACCESS_KEY}}
BUCKET: ${{secrets.AWS_PROD_BUCKET}}
SKEMA_RS_URL: ${{vars.SKEMA_RS_URL}}
TA1_UNIFIED_URL: ${{vars.TA1_UNIFIED_URL}}
MIT_TR_URL: ${{vars.MIT_TR_URL}}
MOCK_TA1: ${{vars.MOCK_TA1}}
run: >
MOCK_TA1=FALSE poetry run poe report
poetry run poe report
11 changes: 5 additions & 6 deletions tests/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def test_code_to_amr(
), f"AMR failed to validate to its provided schema: {amr_instance.validation_error}"

#### POSTAMBLE ####
if 'amr' in locals():
record_quality_check(context_dir, "code_to_amr", "F1 Score", amr_instance.f1(amr))
# if 'amr' in locals():
# record_quality_check(context_dir, "code_to_amr", "F1 Score", amr_instance.f1(amr))


@pytest.mark.parametrize("resource", params["equations_to_amr"])
Expand Down Expand Up @@ -265,10 +265,9 @@ def write_to_fake_configs(req, resp):
assert storage[1].get("model_id") == "test2"

#### POSTAMBLE ####
if "amr" in locals():
record_quality_check(
context_dir, "equations_to_amr", "F1 Score", amr_instance.f1(amr)
)
# if 'amr' in locals():
# record_quality_check(context_dir, "equations_to_amr", "F1 Score", amr_instance.f1(amr))



@pytest.mark.parametrize("resource", params["profile_dataset"])
Expand Down