Skip to content

Commit

Permalink
Upgrade GitHub Actions versions (torchbox#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jan 9, 2024
1 parent 1612e05 commit dfc31df
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 93 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: pipx install "poetry>=1.1.12,<2"
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
python-version: "3.11"
cache: 'poetry'
- run: pip install tox
- run: tox -e lint,py311-dj42
test_compatibility:
needs: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Test with all supported Django versions, for all compatible Python versions.
Expand All @@ -39,9 +40,9 @@ jobs:
# - python: "3.12"
# toxenv: py312-dj41
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: pipx install "poetry>=1.1.12,<2"
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
Expand All @@ -53,12 +54,12 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- id: node-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
# Cache node_modules rather than the npm cache, as we rarely update npm packages.
path: node_modules
Expand Down Expand Up @@ -86,8 +87,8 @@ jobs:
- run: cat pyproject.toml | awk '{sub(/^version = .+/,"version = \"0.0.0.dev\"")}1' > pyproject.toml.tmp && mv pyproject.toml.tmp pyproject.toml
- run: poetry build
- run: mv dist site
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: site
deploy_site:
Expand All @@ -101,4 +102,4 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/deploy-pages@v2
- uses: actions/deploy-pages@v4
Loading

0 comments on commit dfc31df

Please sign in to comment.