Skip to content

Commit

Permalink
bump up actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MridulS committed Jun 8, 2023
1 parent 9d3a4aa commit e736d79
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
jobs:
# Check that source code is black-ified
black:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
name: Checkout repository

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
name: Setup Python
with:
python-version: 3.9
Expand All @@ -28,9 +28,9 @@ jobs:
# This job is copied over from `deploy.yaml`
build-environment:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# See: https://github.com/marketplace/actions/setup-conda
- uses: s-weigand/setup-conda@v1
Expand All @@ -40,7 +40,7 @@ jobs:
# Build cache of environment
- name: Cache conda environment
id: cache-environment
uses: actions/cache@v2
uses: actions/cache@v3
# Conda environment build step depends on two files,
# so we ensure that the hash key contains both their hashes.
with:
Expand All @@ -54,21 +54,21 @@ jobs:

# See: https://github.com/actions/upload-artifact
- name: Upload environment
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: nams-tarball
path: nams.tar.gz

# This job is copied over from `deploy.yaml`
build-deploy-website:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: build-environment
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# https://github.com/actions/download-artifact
- name: Download environment tarball
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: nams-tarball

Expand All @@ -78,7 +78,7 @@ jobs:
# Build cache of website
- name: Cache website
id: cache-website
uses: actions/cache@v2
uses: actions/cache@v3
# Website build step depends on the following files:
# - mkdocs.yml
# - scripts/ci/build_website.sh
Expand All @@ -105,13 +105,13 @@ jobs:

# This job is copied over from `deploy.yaml`
build-deploy-leanpub:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: build-environment
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Download environment tarball
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: nams-tarball

Expand All @@ -121,7 +121,7 @@ jobs:
# Build cache of leanpub source
- name: Cache LeanPub
id: cache-leanpub
uses: actions/cache@v2
uses: actions/cache@v3
# Leanpub build step depends on the following files:
# - scripts/bookbuilder
# - scripts/ci/build_website.sh
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:

jobs:
build-environment:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# See: https://github.com/marketplace/actions/setup-conda
- uses: s-weigand/setup-conda@v1
Expand All @@ -25,7 +25,7 @@ jobs:
# Build cache of environment
- name: Cache conda environment
id: cache-environment
uses: actions/cache@v2
uses: actions/cache@v3
# Conda environment build step depends on two files,
# so we ensure that the hash key contains both their hashes.
with:
Expand All @@ -39,20 +39,20 @@ jobs:

# See: https://github.com/actions/upload-artifact
- name: Upload environment
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: nams-tarball
path: nams.tar.gz

build-deploy-website:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: build-environment
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# https://github.com/actions/download-artifact
- name: Download environment tarball
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: nams-tarball

Expand All @@ -77,13 +77,13 @@ jobs:
disable_nojekyll: false

build-deploy-leanpub:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: build-environment
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Download environment tarball
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: nams-tarball

Expand Down

0 comments on commit e736d79

Please sign in to comment.