From 6dcb9db999b84b1fa6d464d7d4f68e467933247e Mon Sep 17 00:00:00 2001 From: Javier Evans Date: Tue, 14 Nov 2023 20:56:43 -0800 Subject: [PATCH] update github actions workflow to enforce python versions --- .github/workflows/pulumi-aws-tests.yml | 28 +++++++++++--------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pulumi-aws-tests.yml b/.github/workflows/pulumi-aws-tests.yml index c8230b5..bcb7ca7 100644 --- a/.github/workflows/pulumi-aws-tests.yml +++ b/.github/workflows/pulumi-aws-tests.yml @@ -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 @@ -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