Skip to content

Commit

Permalink
fix: py39 unit tests (#176)
Browse files Browse the repository at this point in the history
* fix: py39 unit tests

* chore: update jobs references in wf

* chore: align naming of cache keys in pip cache step
  • Loading branch information
mkolasinski-splunk authored Sep 13, 2023
1 parent f640ae4 commit 07b89a1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ jobs:
name: test-results-unit-python_${{ matrix.python-version }}
path: test-results/*

run-unit-tests-311:
run-unit-tests-3_9:
name: test-unit-python3-${{ matrix.python-version }}
if: ${{ needs.test-inventory.outputs.unit == 'true' }}
runs-on: ubuntu-latest
Expand All @@ -453,7 +453,7 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.9"
permissions:
actions: read
deployments: read
Expand Down Expand Up @@ -629,7 +629,7 @@ jobs:
path: build/package/deployment**
if: ${{ !cancelled() }}

build-311:
build-3_9:
runs-on: ubuntu-latest
needs:
- setup-workflow
Expand All @@ -639,11 +639,11 @@ jobs:
- lint
- review_secrets
- semgrep
- run-unit-tests-311
- run-unit-tests-3_9
- fossa-scan
if: |
always() &&
(needs.run-unit-tests-311.result == 'success' || needs.run-unit-tests-311.result == 'skipped')
(needs.run-unit-tests-3_9.result == 'success' || needs.run-unit-tests-3_9.result == 'skipped')
permissions:
contents: write
packages: read
Expand All @@ -656,7 +656,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: 3.9
- name: create requirements file for pip
run: |
if [ -f "poetry.lock" ]
Expand All @@ -683,9 +683,9 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-python311-${{ hashFiles('requirements_dev.txt') }}
key: ${{ runner.os }}-pip-python3_9-${{ hashFiles('requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-python311
${{ runner.os }}-pip-python3_9
- run: pip install -r requirements_dev.txt
- id: semantic
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 07b89a1

Please sign in to comment.