From 70347420d0de05a3c02369f755ee36e6b5783187 Mon Sep 17 00:00:00 2001 From: Laurent Rene de Cotret Date: Fri, 28 Jun 2024 08:00:35 -0400 Subject: [PATCH] CI: update actions --- .github/workflows/ci.yml | 29 +++++++++++------------------ .github/workflows/lint.yml | 4 ++-- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 010383ec..1a83fcff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,26 +21,26 @@ jobs: python-version: "3.10" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 if: startsWith(runner.os, 'Linux') with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 if: startsWith(runner.os, 'macOS') with: path: ~/Library/Caches/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 if: startsWith(runner.os, 'Windows') with: path: ~\AppData\Local\pip\Cache @@ -74,9 +74,9 @@ jobs: python setup.py sdist bdist_wheel - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: ${{ runner.os }}-py${{ matrix.python-version }}-artifact + name: artifact-${{ runner.os }}-py${{ matrix.python-version }} path: dist/* retention-days: 7 @@ -85,26 +85,19 @@ jobs: needs: [build] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: - path: artifacts/ + path: dist/ + pattern: artifact-* + merge-multiple: true - name: Create release description run: | python release-description.py CHANGELOG.rst > description.md cat description.md - - name: Move artifacts - run: | - ls --recursive artifacts/ - mkdir dist - mv --backup=numbered artifacts/*/** dist - rm -f dist/*~ - echo "To be uploaded:" - ls dist - - name: Create release if: startsWith(github.ref, 'refs/tags/v') uses: softprops/action-gh-release@v1 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index af929af7..70d1b2a6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,6 +6,6 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - uses: psf/black@stable \ No newline at end of file