Skip to content

Commit

Permalink
update github actions workflow to enforce python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
4141done committed Nov 15, 2023
1 parent fad88de commit 6dcb9db
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/pulumi-aws-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ jobs:
ubuntu-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: syphar/restore-virtualenv@v1
id: pulumi-aws-tests-cache-virtualenv
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
requirement_files: pulumi/python/Pipfile.lock

- uses: syphar/restore-pip-download-cache@v1
if: steps.pulumi-aws-tests-cache-virtualenv.outputs.cache-hit != 'true'
cache: 'pipenv'
python-version-file: '.python-version'
cache-dependency-path: |
pulumi/python/Pipfile.lock
- run: ./setup_venv.sh
working-directory: bin
Expand All @@ -28,15 +26,13 @@ jobs:
macos-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: syphar/restore-virtualenv@v1
id: pulumi-aws-tests-cache-virtualenv
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
requirement_files: pulumi/python/Pipfile.lock

- uses: syphar/restore-pip-download-cache@v1
if: steps.pulumi-aws-tests-cache-virtualenv.outputs.cache-hit != 'true'
cache: 'pipenv'
python-version-file: '.python-version'
cache-dependency-path: |
pulumi/python/Pipfile.lock
- run: ./setup_venv.sh
working-directory: bin
Expand Down

0 comments on commit 6dcb9db

Please sign in to comment.