Skip to content

Commit

Permalink
MNT: Update actions (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Oct 31, 2022
1 parent d587037 commit 041e6bd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false

Expand All @@ -37,21 +37,21 @@ jobs:
sphinx-build -b html docs/ docs/_build/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ github.event_name == 'release' }}
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/_build/
CLEAN: false
TARGET_FOLDER: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/_build/
clean: false
target-folder: ${{ github.ref }}

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ github.event_name == 'push' }}
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/_build/
CLEAN: false
TARGET_FOLDER: latest
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/_build/
clean: false
target-folder: latest
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'

Expand All @@ -34,7 +34,7 @@ jobs:
twine check --strict dist/*
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ./dist/*
retention-days: 5
Expand All @@ -46,13 +46,13 @@ jobs:
# release on every tag
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Upload Wheels to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0

docker_tests:
needs: linting
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
xarray-version: ''
run-with-scipy: 'NO'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Update
run: |
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
run-with-scipy: ['YES']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Conda
uses: s-weigand/setup-conda@v1
Expand Down Expand Up @@ -162,15 +162,15 @@ jobs:
source activate test
sphinx-build -b html docs/ docs/_build/
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3


test_latest:
needs: linting
name: Test latest dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Conda
uses: s-weigand/setup-conda@v1
Expand Down

0 comments on commit 041e6bd

Please sign in to comment.