From b04c4991b5bb86b2d6c80db6d3575ab1db69bb31 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sun, 21 Jan 2024 11:22:15 -0500 Subject: [PATCH] bump up python action and use its pip caching --- .github/workflows/docs-test.yml | 12 ++---------- .github/workflows/flake8.yml | 12 ++---------- .github/workflows/gh-pages.yml | 12 ++---------- .github/workflows/isort.yml | 12 ++---------- .github/workflows/pylint.yml | 12 ++---------- .github/workflows/pytest.yml | 12 ++---------- .github/workflows/regtest.yml | 12 ++---------- 7 files changed, 14 insertions(+), 70 deletions(-) diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml index a2fb37cb4..fe7827bbb 100644 --- a/.github/workflows/docs-test.yml +++ b/.github/workflows/docs-test.yml @@ -21,18 +21,10 @@ jobs: sudo apt install pandoc doxygen - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - - - name: Cache pip - uses: actions/cache@v3 - with: - # this path is specific to Ubuntu - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: "pip" - name: Install dependencies run: pip install -r ./requirements.txt diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index e184e05e6..14f0195ae 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -18,18 +18,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - - - name: Cache pip - uses: actions/cache@v3 - with: - # this path is specific to Ubuntu - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: "pip" - name: Install dependencies run: | diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0f8c8279d..1b79ebd08 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -17,18 +17,10 @@ jobs: sudo apt install pandoc doxygen - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - - - name: Cache pip - uses: actions/cache@v3 - with: - # this path is specific to Ubuntu - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: "pip" - name: Install dependencies run: pip install -r ./requirements.txt diff --git a/.github/workflows/isort.yml b/.github/workflows/isort.yml index 3aa99ab18..e24e0be44 100644 --- a/.github/workflows/isort.yml +++ b/.github/workflows/isort.yml @@ -18,18 +18,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - - - name: Cache pip - uses: actions/cache@v3 - with: - # this path is specific to Ubuntu - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: "pip" - name: Install dependencies + isort run: | diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 81ac9f28e..f17845c60 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -18,18 +18,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - - - name: Cache pip - uses: actions/cache@v3 - with: - # this path is specific to Ubuntu - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: "pip" - name: Install dependencies + pylint run: | diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b0b80d0bf..533e4c82b 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,18 +22,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - name: Cache pip - uses: actions/cache@v3 - with: - # this path is specific to Ubuntu - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: "pip" - name: Install dependencies run: | diff --git a/.github/workflows/regtest.yml b/.github/workflows/regtest.yml index 50962883d..bfb66cb83 100644 --- a/.github/workflows/regtest.yml +++ b/.github/workflows/regtest.yml @@ -22,18 +22,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - name: Cache pip - uses: actions/cache@v3 - with: - # this path is specific to Ubuntu - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: "pip" - name: Install dependencies run: |