Skip to content

Commit eeaf9e3

Browse files
committed
chore: Update build and test workflow
- Cache pip installed packages - Install the poetry-dynamic-versioning plugin
1 parent 25e9da3 commit eeaf9e3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build-and-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,33 @@ jobs:
2020
- uses: actions/setup-python@v5
2121
with:
2222
python-version: "3.12"
23+
cache: pip
24+
2325
- uses: Gr1N/setup-poetry@v9
26+
2427
- uses: actions/checkout@v4
2528
with:
2629
fetch-depth: 0
2730
fetch-tags: true
31+
2832
- name: Install Dependencies
29-
run: poetry install --no-root --only=dev
33+
run: |
34+
poetry self add "poetry-dynamic-versioning[plugin]"
35+
poetry install --no-root --only=dev
36+
3037
- name: Get Webex Token
3138
id: webex_token
3239
run: |
3340
WEBEX_ACCESS_TOKEN=$(curl -s ${{ secrets.WEBEX_TOKEN_KEEPER_URL }} | jq -r .access_token)
3441
echo "WEBEX_ACCESS_TOKEN=$WEBEX_ACCESS_TOKEN" >> "$GITHUB_OUTPUT"
3542
echo "::add-mask::$WEBEX_ACCESS_TOKEN"
43+
3644
- name: Build
3745
run: poetry build
46+
3847
- name: Install
3948
run: pip install dist/*.whl
49+
4050
- name: Test
4151
run: pytest -s -m "not slow and not manual"
4252
env:
@@ -46,6 +56,7 @@ jobs:
4656
WEBEX_TEST_FILE_URL: ${{ vars.WEBEX_TEST_FILE_URL }}
4757
WEBEX_GUEST_ISSUER_ID: ${{ secrets.WEBEX_GUEST_ISSUER_ID }}
4858
WEBEX_GUEST_ISSUER_SECRET: ${{ secrets.WEBEX_GUEST_ISSUER_SECRET }}
59+
4960
- name: Upload Distribution Files
5061
uses: actions/upload-artifact@v4
5162
with:

0 commit comments

Comments
 (0)