From 0f766acbbba833e5440eabe6edcfa291e2852326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= <146729917+SMoraisAnsys@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:07:06 +0200 Subject: [PATCH] CI: Update actions version By looking at https://github.com/ansys/ansys-pythonnet/pull/15 failing workflows, I have the feeling that the CICD can't run due to the use of old actions. This PR updates setup-python and artifact related actions. --- .github/workflows/ci_cd.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 954e4d33..d9f1e0a7 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -73,7 +73,7 @@ jobs: dotnet-version: '6.0.x' - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} architecture: ${{ matrix.platform }} @@ -132,7 +132,7 @@ jobs: python -m build && python -m twine check dist/* - name: "Upload distribution artifact" - uses: actions/upload-artifact@v3.1.0 + uses: actions/upload-artifact@v4 with: name: ${{ env.LIBRARY_NAME }}-py${{ matrix.python}}-${{ matrix.os }}-${{ matrix.platform }}-artifacts path: dist/ @@ -158,7 +158,7 @@ jobs: uses: actions/checkout@v4 - name: "Install Python ${{ env.MAIN_PYTHON_VERSION }}" - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} @@ -167,7 +167,7 @@ jobs: python -m pip install twine - name: "Download the library artifacts from build-library step" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.LIBRARY_NAME }}-artifacts path: ${{ env.LIBRARY_NAME }}-artifacts