From a95c1c68609d89480c0cf241075d540832ef8b03 Mon Sep 17 00:00:00 2001 From: Vojtech Micka Date: Sat, 3 Aug 2024 00:09:26 +0200 Subject: [PATCH] chore: Update github actions --- .github/workflows/docs.yaml | 8 +++++--- .github/workflows/publish-pypi.yaml | 9 +++++---- .github/workflows/test.yaml | 11 +++++++---- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index c139f6e..3e52259 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -10,12 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source files - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 + fetch-tags: true + persist-credentials: false - name: Set up Python 🐍 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' architecture: x64 diff --git a/.github/workflows/publish-pypi.yaml b/.github/workflows/publish-pypi.yaml index 69c275a..6dae7a4 100644 --- a/.github/workflows/publish-pypi.yaml +++ b/.github/workflows/publish-pypi.yaml @@ -12,13 +12,14 @@ jobs: steps: - name: Checkout source files - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 + fetch-tags: true persist-credentials: false - name: Set up Python 🐍 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' architecture: x64 @@ -32,7 +33,7 @@ jobs: run: python -m build - name: Publish package to Test PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2f6d071..f28a4a9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,13 +19,14 @@ jobs: steps: - name: Checkout source files - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 + fetch-tags: true persist-credentials: false - name: Set up Python 🐍 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' architecture: x64 @@ -39,9 +40,11 @@ jobs: run: pytest --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true files: ./coverage.xml name: codecov-evotorch verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}