Skip to content

Commit 467b1ea

Browse files
authored
workflow version updates (#608)
* workflow version updates (wip) Signed-off-by: vsoch <[email protected]>
1 parent 4920648 commit 467b1ea

File tree

10 files changed

+343
-327
lines changed

10 files changed

+343
-327
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check Actions Once a Year
2+
on:
3+
schedule:
4+
cron: 0 0 1 6 *
5+
6+
jobs:
7+
test-detect:
8+
name: Update Actions
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v3
13+
- name: Detect and Update
14+
uses: vsoch/action-updater@2c2216e27ee963aaa31ff0ff81de007acb84b9c2 # 0.0.11
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@ jobs:
88
generate-docs:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
with:
13-
ref: "gh-pages"
11+
- uses: actions/checkout@v3
12+
with:
13+
ref: gh-pages
1414

15-
- name: Create conda environment
16-
run: conda create --quiet -c conda-forge --name shpc spython
15+
- name: Create conda environment
16+
run: conda create --quiet -c conda-forge --name shpc spython
1717

18-
- name: Install shpc
19-
run: |
20-
export PATH="/usr/share/miniconda/bin:$PATH"
21-
root=$PWD
22-
source activate shpc
23-
cd /tmp
24-
git clone https://github.com/singularityhub/singularity-hpc
25-
cd singularity-hpc
26-
pip install -e .
27-
cd $root
18+
- name: Install shpc
19+
run: |
20+
export PATH="/usr/share/miniconda/bin:$PATH"
21+
root=$PWD
22+
source activate shpc
23+
cd /tmp
24+
git clone https://github.com/singularityhub/singularity-hpc
25+
cd singularity-hpc
26+
pip install -e .
27+
cd $root
2828
29-
- name: Generate docs
30-
run: |
31-
export PATH="/usr/share/miniconda/bin:$PATH"
32-
source activate shpc
33-
/bin/bash generate.sh
29+
- name: Generate docs
30+
run: |
31+
export PATH="/usr/share/miniconda/bin:$PATH"
32+
source activate shpc
33+
/bin/bash generate.sh
3434
35-
- name: Deploy 🚀
36-
uses: JamesIves/github-pages-deploy-action@4.1.1
37-
with:
38-
branch: gh-pages
39-
folder: .
35+
- name: Deploy 🚀
36+
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6 # v4.4.1
37+
with:
38+
branch: gh-pages
39+
folder: .

.github/workflows/main.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ on:
44
# This should run on a push to any branch except main, gh-pages, and binoc
55
push:
66
branches-ignore:
7-
- main
8-
- gh-pages
7+
- main
8+
- gh-pages
99

1010
jobs:
1111
formatting:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v3
1515

16-
- name: Setup black linter
17-
run: conda create --quiet --name black pyflakes
16+
- name: Setup black linter
17+
run: conda create --quiet --name black pyflakes
1818

19-
- name: Check Spelling
20-
uses: crate-ci/typos@592b36d23c62cb378f6097a292bc902ee73f93ef # version 1.0.4
21-
with:
22-
files: ./docs/getting_started/ ./docs/index.rst
19+
- name: Check Spelling
20+
uses: crate-ci/typos@7ad296c72fa8265059cc03d1eda562fbdfcd6df2 # v1.9.0
21+
with:
22+
files: ./docs/getting_started/ ./docs/index.rst
2323

24-
- name: Lint and format Python code
25-
run: |
26-
export PATH="/usr/share/miniconda/bin:$PATH"
27-
source activate black
28-
pip install -r .github/dev-requirements.txt
29-
pre-commit run --all-files
24+
- name: Lint and format Python code
25+
run: |
26+
export PATH="/usr/share/miniconda/bin:$PATH"
27+
source activate black
28+
pip install -r .github/dev-requirements.txt
29+
pre-commit run --all-files

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-20.04
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313

1414
- name: Install
1515
run: conda create --quiet --name shpc twine

.github/workflows/test-container.yml

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
outputs:
1212
changed_recipes: ${{ steps.files.outputs.added_modified }}
1313
steps:
14-
- name: Find changed recipes
15-
id: files
16-
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
17-
with:
18-
format: 'json'
14+
- name: Find changed recipes
15+
id: files
16+
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
17+
with:
18+
format: json
1919

2020
test-recipes:
2121
needs:
22-
- changes
22+
- changes
2323
runs-on: ubuntu-latest
2424
strategy:
2525
# Keep going on other deployments if anything bloops
@@ -29,69 +29,69 @@ jobs:
2929

3030
name: Check ${{ matrix.changed_recipe }}
3131
steps:
32-
- name: Continue
33-
run: |
34-
# Continue if we have a changed recipe file
35-
if [[ "${{ matrix.changed_recipe }}" = registry* ]]; then
36-
recipe_basename=$(basename "${{ matrix.changed_recipe }}")
37-
if [[ "${recipe_basename}" == "container.yaml" ]]; then
38-
echo "keepgoing=true" >> $GITHUB_ENV
39-
fi
32+
- name: Continue
33+
run: |
34+
# Continue if we have a changed recipe file
35+
if [[ "${{ matrix.changed_recipe }}" = registry* ]]; then
36+
recipe_basename=$(basename "${{ matrix.changed_recipe }}")
37+
if [[ "${recipe_basename}" == "container.yaml" ]]; then
38+
echo "keepgoing=true" >> $GITHUB_ENV
4039
fi
40+
fi
4141
42-
- name: Checkout
43-
if: ${{ env.keepgoing == 'true' }}
44-
uses: actions/checkout@v3
42+
- name: Checkout
43+
if: ${{ env.keepgoing == 'true' }}
44+
uses: actions/checkout@v3
4545

46-
- name: Make Space For Build
47-
if: ${{ env.keepgoing == 'true' }}
48-
run: |
49-
sudo rm -rf /usr/share/dotnet
50-
sudo rm -rf /opt/ghc
46+
- name: Make Space For Build
47+
if: ${{ env.keepgoing == 'true' }}
48+
run: |
49+
sudo rm -rf /usr/share/dotnet
50+
sudo rm -rf /opt/ghc
5151
52-
- name: Install Dependencies
53-
if: ${{ env.keepgoing == 'true' }}
54-
run: |
55-
sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
52+
- name: Install Dependencies
53+
if: ${{ env.keepgoing == 'true' }}
54+
run: |
55+
sudo apt-get install lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
5656
57-
- name: Install Lmod
58-
if: ${{ env.keepgoing == 'true' }}
59-
run: |
60-
PKG_VERSION=8.4.27
61-
PKG_URL="https://github.com/TACC/Lmod/archive/${PKG_VERSION}.tar.gz"
62-
wget $PKG_URL
63-
tar xfz ${PKG_VERSION}.tar.gz
64-
cd Lmod-${PKG_VERSION}
65-
./configure --prefix=/usr/share && make && make install
57+
- name: Install Lmod
58+
if: ${{ env.keepgoing == 'true' }}
59+
run: |
60+
PKG_VERSION=8.4.27
61+
PKG_URL="https://github.com/TACC/Lmod/archive/${PKG_VERSION}.tar.gz"
62+
wget $PKG_URL
63+
tar xfz ${PKG_VERSION}.tar.gz
64+
cd Lmod-${PKG_VERSION}
65+
./configure --prefix=/usr/share && make && make install
6666
67-
- uses: eWaterCycle/setup-singularity@v6
68-
if: ${{ env.keepgoing == 'true' }}
69-
name: Install Singularity
70-
with:
71-
singularity-version: 3.6.4
67+
- uses: eWaterCycle/setup-singularity@v6
68+
if: ${{ env.keepgoing == 'true' }}
69+
name: Install Singularity
70+
with:
71+
singularity-version: 3.6.4
7272

73-
- name: Create conda environment
74-
if: ${{ env.keepgoing == 'true' }}
75-
run: conda create --quiet -c conda-forge --name shpc spython
73+
- name: Create conda environment
74+
if: ${{ env.keepgoing == 'true' }}
75+
run: conda create --quiet -c conda-forge --name shpc spython
7676

77-
- uses: actions/checkout@v2
78-
if: ${{ env.keepgoing == 'true' }}
77+
- uses: actions/checkout@v3
78+
if: ${{ env.keepgoing == 'true' }}
7979

80-
- name: Install shpc
81-
if: ${{ env.keepgoing == 'true' }}
82-
run: |
83-
export PATH="/usr/share/miniconda/bin:$PATH"
84-
source activate shpc
85-
pip install -e .
80+
- name: Install shpc
81+
if: ${{ env.keepgoing == 'true' }}
82+
run: |
83+
export PATH="/usr/share/miniconda/bin:$PATH"
84+
source activate shpc
85+
pip install -e .
8686
87-
- name: Run module tests
88-
if: ${{ env.keepgoing == 'true' }}
89-
run: |
90-
export PATH="/usr/share/miniconda/bin:$PATH"
91-
source activate shpc
92-
cd registry
93-
container_yaml="${{ matrix.changed_recipe }}"
94-
module=$(dirname $container_yaml)
95-
module=$(echo "${module/registry\//}")
96-
echo "Testing $module"
97-
shpc test --template ../shpc/tests/test-registry-module.sh --commands $module
87+
- name: Run module tests
88+
if: ${{ env.keepgoing == 'true' }}
89+
run: |
90+
export PATH="/usr/share/miniconda/bin:$PATH"
91+
source activate shpc
92+
cd registry
93+
container_yaml="${{ matrix.changed_recipe }}"
94+
module=$(dirname $container_yaml)
95+
module=$(echo "${module/registry\//}")
96+
echo "Testing $module"
97+
shpc test --template ../shpc/tests/test-registry-module.sh --commands $module

0 commit comments

Comments
 (0)