Skip to content

Updated actions per prompt from GitHub #1198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.10.0
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

Expand Down Expand Up @@ -54,11 +54,11 @@ jobs:
sudo apt-get install -y nvidia-cuda-toolkit clinfo

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v3.1.0

# https://github.com/marketplace/actions/setup-miniconda
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.1.1
with:
auto-update-conda: true
python-version: ${{ env.python-ver }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
if: |
!github.event.pull_request.head.repo.fork &&
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/_build/html/
44 changes: 22 additions & 22 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.10.0
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

- name: Checkout DPNP repo
uses: actions/checkout@v3
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0

- name: Checkout oneDPL
uses: actions/checkout@v3
uses: actions/checkout@v3.1.0
with:
repository: oneapi-src/oneDPL
path: oneDPL
ref: oneDPL-2021.7.0-release

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.1.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand All @@ -63,7 +63,7 @@ jobs:
run: conda install conda-build

- name: Cache conda packages
uses: actions/cache@v3
uses: actions/cache@v3.0.11
env:
CACHE_NUMBER: 1 # Increase to reset cache
with:
Expand All @@ -80,7 +80,7 @@ jobs:
DPLROOT: '${{ github.workspace }}/oneDPL'

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.0
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
Expand All @@ -101,24 +101,24 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.10.0
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

- name: Checkout DPNP repo
uses: actions/checkout@v3
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0

- name: Checkout oneDPL
uses: actions/checkout@v3
uses: actions/checkout@v3.1.0
with:
repository: oneapi-src/oneDPL
path: oneDPL
ref: oneDPL-2021.7.0-release

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.1.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand All @@ -132,7 +132,7 @@ jobs:
(echo CONDA_BLD=%CONDA_PREFIX%\conda-bld\win-64\) >> %GITHUB_ENV%

- name: Cache conda packages
uses: actions/cache@v3
uses: actions/cache@v3.0.11
env:
CACHE_NUMBER: 1 # Increase to reset cache
with:
Expand All @@ -152,7 +152,7 @@ jobs:
DPLROOT: '%GITHUB_WORKSPACE%\oneDPL'

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.0
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.0
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
path: ${{ env.pkg-path-in-channel }}
Expand All @@ -195,7 +195,7 @@ jobs:
tar -xvf ${{ env.pkg-path-in-channel }}/${{ env.PACKAGE_NAME }}-*.tar.bz2 -C ${{ env.extracted-pkg-path }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.1.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'

- name: Cache conda packages
uses: actions/cache@v3
uses: actions/cache@v3.0.11
env:
CACHE_NUMBER: 1 # Increase to reset cache
with:
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.0
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
path: ${{ env.pkg-path-in-channel }}
Expand All @@ -304,7 +304,7 @@ jobs:
dir ${{ env.extracted-pkg-path }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.1.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:
run: more lockfile

- name: Cache conda packages
uses: actions/cache@v3
uses: actions/cache@v3.0.11
env:
CACHE_NUMBER: 1 # Increase to reset cache
with:
Expand Down Expand Up @@ -448,12 +448,12 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.0
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.1.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand Down Expand Up @@ -486,12 +486,12 @@ jobs:
python: ['3.8', '3.9']
steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.0
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.1.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: '3.10'
- uses: pre-commit/[email protected]