From f4215a256ef38b0c125cfb7fc6a40892ec91acbe Mon Sep 17 00:00:00 2001 From: Ivan Pelizon <24814264+peiva-git@users.noreply.github.com> Date: Sat, 8 Jun 2024 12:17:24 +0200 Subject: [PATCH] Updated workflows with new action versions --- .github/workflows/build-and-test-cpu.yml | 5 +++-- .github/workflows/build-and-test-gpu.yml | 5 +++-- .github/workflows/docs.yml | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-and-test-cpu.yml b/.github/workflows/build-and-test-cpu.yml index 4cba187..09916be 100644 --- a/.github/workflows/build-and-test-cpu.yml +++ b/.github/workflows/build-and-test-cpu.yml @@ -12,9 +12,9 @@ jobs: max-parallel: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.9 - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: '3.9' - name: Add conda to system path @@ -23,6 +23,7 @@ jobs: echo $CONDA/bin >> $GITHUB_PATH - name: Install dependencies run: | + conda install -c conda-forge -y python=3.9 conda env update --file conda/pp-cpu.yml --name base - name: Lint with flake8 run: | diff --git a/.github/workflows/build-and-test-gpu.yml b/.github/workflows/build-and-test-gpu.yml index 42cb5da..62e09dc 100644 --- a/.github/workflows/build-and-test-gpu.yml +++ b/.github/workflows/build-and-test-gpu.yml @@ -12,9 +12,9 @@ jobs: max-parallel: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.9 - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: '3.9' - name: Add conda to system path @@ -23,6 +23,7 @@ jobs: echo $CONDA/bin >> $GITHUB_PATH - name: Install dependencies run: | + conda install -c conda-forge -y python=3.9 conda env update --file conda/pp-gpu.yml --name base - name: Lint with flake8 run: | diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a6b7ea7..4516a52 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,7 +21,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: '3.9' @@ -32,6 +32,7 @@ jobs: echo $CONDA/bin >> $GITHUB_PATH - name: Install dependencies run: | + conda install -c conda-forge python=3.9 conda env update --file conda/pp-gpu.yml --name base - name: Install package run: $CONDA/bin/pip install -e . @@ -40,7 +41,7 @@ jobs: export LD_LIBRARY_PATH=$CONDA/lib/:$LD_LIBRARY_PATH export PDOC_ALLOW_EXEC=1 $CONDA/bin/pdoc -o docs/ basketballtrainer - - uses: actions/upload-pages-artifact@v2 + - uses: actions/upload-pages-artifact@v3 with: path: docs/ @@ -57,4 +58,4 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3