2424
2525 unit_test_execution :
2626 runs-on : ubuntu-latest
27-
27+ permissions :
28+ contents : write
29+ packages : write
30+ pull-requests : read
2831 steps :
2932 - name : Create GitHub App token
3033 id : app
@@ -33,15 +36,13 @@ jobs:
3336 app-id : ${{ vars.GH_APP_ID }}
3437 private-key : ${{ secrets.GH_APP_KEY }}
3538 owner : citusdata
36- repositories : |
37- tools
38- packaging
3939
4040 - name : Checkout repository
4141 uses : actions/checkout@v3
4242 with :
4343 token : ${{ steps.app.outputs.token }}
4444 fetch-depth : 0
45+ submodules : true
4546
4647 - name : Set up Python 3.10
4748 uses : actions/setup-python@v5
@@ -66,13 +67,11 @@ jobs:
6667 - name : Unit tests for "Common tools"
6768 env :
6869 GH_TOKEN : ${{ steps.app.outputs.token }}
69- GITHUB_TOKEN : ${{ steps.app.outputs.token }}
7070 run : python -m pytest -q packaging_automation/tests/test_common_tool_methods.py
7171
7272 - name : Unit tests for "Update Package Properties"
7373 env :
7474 GH_TOKEN : ${{ steps.app.outputs.token }}
75- GITHUB_TOKEN : ${{ steps.app.outputs.token }}
7675 run : python -m pytest -q packaging_automation/tests/test_update_package_properties.py
7776
7877 # no longer viable, outdated test, skipping to not block the pipeline
@@ -82,17 +81,14 @@ jobs:
8281 - name : Unit tests for "Update Docker"
8382 env :
8483 GH_TOKEN : ${{ steps.app.outputs.token }}
85- GITHUB_TOKEN : ${{ steps.app.outputs.token }}
8684 run : python -m pytest -q packaging_automation/tests/test_update_docker.py
8785
8886 - name : Unit tests for "Update Pgxn"
8987 env :
9088 GH_TOKEN : ${{ steps.app.outputs.token }}
91- GITHUB_TOKEN : ${{ steps.app.outputs.token }}
9289 run : python -m pytest -q packaging_automation/tests/test_update_pgxn.py
9390
9491 - name : Packaging Warning Handler
9592 env :
9693 GH_TOKEN : ${{ steps.app.outputs.token }}
97- GITHUB_TOKEN : ${{ steps.app.outputs.token }}
9894 run : python -m pytest -q packaging_automation/tests/test_packaging_warning_handler.py
0 commit comments