Skip to content

Commit

Permalink
Updated deprecated gh-actions
Browse files Browse the repository at this point in the history
Now using
setup-python@v5
checkout@v4
upload-artifact@v4
download-artifact@v4
  • Loading branch information
viktorht committed May 24, 2024
1 parent 9d389b5 commit 21d4ab9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: "Checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Build wheels"
uses: pypa/[email protected]
Expand All @@ -37,7 +37,7 @@ jobs:
# CIBW_TEST_COMMAND: "pytest {project}/tests"

- name: "Upload wheel as artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.os }}-wheel
path: "./**/*.whl"
Expand All @@ -46,11 +46,11 @@ jobs:
name: Make source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: pipx run build --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: artifact-source-dist
path: "./**/dist/*.tar.gz"
Expand All @@ -64,7 +64,7 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Copy artifacts to dist/ folder
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install cmdstanpy
run: |
python -m pip install --upgrade pip wheel
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] # , macos-latest, windows-latest
python-version: ["3.10"] # 3.7, 3.8, 3.9,
python-version: ["3.10", "3.11"] # 3.7, 3.8, 3.9,
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out github
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install cmdstanpy
Expand Down

0 comments on commit 21d4ab9

Please sign in to comment.