From 8f7a90f3899695dc46a53b1126819d57d7f6088f Mon Sep 17 00:00:00 2001 From: Sylvain Brunato Date: Fri, 5 Jul 2024 09:37:22 +0200 Subject: [PATCH] ci: github actions updates --- .github/workflows/deploy.yml | 4 ++-- .github/workflows/fetch.yml | 8 ++++---- .github/workflows/test.yml | 24 ++++++++++++------------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4d8629cb0..2d473c1dc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,13 +13,13 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get history and tags for SCM versioning to work run: | git fetch --prune --unshallow git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml index ea71f96b8..4248facb0 100644 --- a/.github/workflows/fetch.yml +++ b/.github/workflows/fetch.yml @@ -3,7 +3,7 @@ name: Fetch product types on: workflow_dispatch: push: - branches: [master, develop] + branches: [develop] schedule: - cron: "0 6 * * *" @@ -13,13 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get history and tags for SCM versioning to work run: | git fetch --prune --unshallow git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Update pip @@ -33,7 +33,7 @@ jobs: shell: bash run: echo "WEEK=$(date +'%V')" >> $GITHUB_OUTPUT - name: Pip cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pip-cache.outputs.DIR }} key: ${{ runner.os }}-pip-${{ steps.get-week.outputs.WEEK }}-${{ hashFiles('setup.cfg') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 837054f54..5d62393a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,17 +15,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get history and tags for SCM versioning to work run: | git fetch --prune --unshallow git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Run pre-commit action - uses: pre-commit/action@v3.0.0 + uses: pre-commit/action@v3.0.1 tests: name: Test it! @@ -36,13 +36,13 @@ jobs: os: [ubuntu-latest, windows-latest] steps: - name: Checkout the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get history and tags for SCM versioning to work run: | git fetch --prune --unshallow git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Update pip @@ -56,7 +56,7 @@ jobs: shell: bash run: echo "WEEK=$(date +'%V')" >> $GITHUB_OUTPUT - name: Pip cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pip-cache.outputs.DIR }} key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ steps.get-week.outputs.WEEK }}-${{ hashFiles('setup.cfg') }} @@ -156,13 +156,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get history and tags for SCM versioning to work run: | git fetch --prune --unshallow git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Update pip @@ -176,7 +176,7 @@ jobs: shell: bash run: echo "WEEK=$(date +'%V')" >> $GITHUB_OUTPUT - name: Pip cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pip-cache.outputs.DIR }} key: ${{ runner.os }}-pip-${{ steps.get-week.outputs.WEEK }}-${{ hashFiles('setup.cfg') }} @@ -195,13 +195,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get history and tags for SCM versioning to work run: | git fetch --prune --unshallow git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Update pip @@ -215,7 +215,7 @@ jobs: shell: bash run: echo "WEEK=$(date +'%V')" >> $GITHUB_OUTPUT - name: Pip cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pip-cache.outputs.DIR }} key: ${{ runner.os }}-pip-${{ steps.get-week.outputs.WEEK }}-${{ hashFiles('setup.cfg') }}