From 19792960c30b2ef2accae83bfd312e6986420060 Mon Sep 17 00:00:00 2001 From: Felix Dangel Date: Wed, 18 Sep 2024 17:31:03 -0400 Subject: [PATCH] [CI] Update Github action versions, cache pip --- .github/workflows/lint-black.yaml | 5 +++-- .github/workflows/lint-darglint.yaml | 5 +++-- .github/workflows/lint-flake8.yaml | 5 +++-- .github/workflows/lint-isort.yaml | 5 +++-- .github/workflows/lint-pydocstyle.yaml | 5 +++-- .github/workflows/python-publish.yml | 5 +++-- .github/workflows/test.yaml | 5 +++-- changelog.md | 5 +++++ 8 files changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint-black.yaml b/.github/workflows/lint-black.yaml index 845479e9..22203622 100644 --- a/.github/workflows/lint-black.yaml +++ b/.github/workflows/lint-black.yaml @@ -13,11 +13,12 @@ jobs: black: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: 3.8 + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/lint-darglint.yaml b/.github/workflows/lint-darglint.yaml index 7465bf05..9cea99c9 100644 --- a/.github/workflows/lint-darglint.yaml +++ b/.github/workflows/lint-darglint.yaml @@ -13,11 +13,12 @@ jobs: darglint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: 3.8 + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/lint-flake8.yaml b/.github/workflows/lint-flake8.yaml index c9fe10a6..c48ae874 100644 --- a/.github/workflows/lint-flake8.yaml +++ b/.github/workflows/lint-flake8.yaml @@ -12,11 +12,12 @@ jobs: flake8: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: 3.8 + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/lint-isort.yaml b/.github/workflows/lint-isort.yaml index cdde1386..5f3aad84 100644 --- a/.github/workflows/lint-isort.yaml +++ b/.github/workflows/lint-isort.yaml @@ -13,11 +13,12 @@ jobs: isort: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: 3.8 + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/lint-pydocstyle.yaml b/.github/workflows/lint-pydocstyle.yaml index 5cd4baa2..5e002692 100644 --- a/.github/workflows/lint-pydocstyle.yaml +++ b/.github/workflows/lint-pydocstyle.yaml @@ -14,11 +14,12 @@ jobs: if: false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: 3.8 + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5a7f0326..2182cf27 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -12,11 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: "3.x" + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5dc6c116..705462d5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,10 +19,11 @@ jobs: matrix: python-version: ["3.8"] steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: "${{ matrix.python-version }}" + cache: pip - name: Install Dependencies run: | python -m pip install --upgrade pip diff --git a/changelog.md b/changelog.md index f24a9189..ca5102b3 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Internal + +- Update Github action versions and cache `pip` + ([PR](https://github.com/f-dangel/curvlinops/pull/129)) + ## [2.0.0] - 2024-08-15 This major release is almost fully backward compatible with the `1.x.y` release