Skip to content

Commit 27ba1e1

Browse files
committed
Update GitHub Actions to latest major versions
1 parent 1fc1995 commit 27ba1e1

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.github/workflows/docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Cancel Previous Runs
23-
uses: styfle/[email protected].0
23+
uses: styfle/[email protected].1
2424
with:
2525
access_token: ${{ github.token }}
2626

27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4.2.2
2828
with:
2929
submodules: true
3030

31-
- uses: actions/setup-python@v4
31+
- uses: actions/setup-python@v5.3.0
3232
with:
3333
python-version: "3.11"
3434
cache: "pip"

.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
uses: styfle/[email protected]
1515
with:
1616
access_token: ${{ github.token }}
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-python@v4
17+
- uses: actions/checkout@v4.2.2
18+
- uses: actions/setup-python@v5.3.0
1919
- name: install clang-format
2020
run: |
2121
pip install clang-format==6.0.1
@@ -38,19 +38,19 @@ jobs:
3838
access_token: ${{ github.token }}
3939

4040
- name: Checkout
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v4.2.2
4242
with:
4343
submodules: true
4444

4545
- name: Cache conda and dependencies
4646
id: cache
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4.2.0
4848
with:
4949
path: ${{ env.CONDA }}/envs
5050
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.python}}-conda-v2-${{ hashFiles('requirements/CI-tests-conda/requirements.txt') }}-${{ hashFiles('requirements/CI-tests-pip/requirements.txt') }}
5151

5252
- name: Install Conda
53-
uses: conda-incubator/setup-miniconda@v3
53+
uses: conda-incubator/setup-miniconda@v3.1.0
5454
if: steps.cache.outputs.cache-hit != 'true'
5555
with:
5656
activate-environment: anaconda-client-env

.github/workflows/wheels.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
python: [3.9, "3.10", 3.11, 3.12]
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v4.2.2
2222
with:
2323
submodules: true
2424
- name: Set up Python ${{ matrix.python }}
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v5.3.0
2626
with:
2727
python-version: ${{ matrix.python }}
2828
- name: Install deps
@@ -51,7 +51,7 @@ jobs:
5151
delocate-wheel -v dist/msprime-*arm64.whl
5252
delocate-wheel -v dist/msprime-*x86_64.whl
5353
- name: Upload Wheels
54-
uses: actions/upload-artifact@v4
54+
uses: actions/upload-artifact@v4.4.3
5555
with:
5656
name: osx-wheel-${{ matrix.python }}
5757
path: dist
@@ -60,11 +60,11 @@ jobs:
6060
runs-on: ubuntu-latest
6161
steps:
6262
- name: Checkout
63-
uses: actions/checkout@v4
63+
uses: actions/checkout@v4.2.2
6464
with:
6565
submodules: true
6666
- name: Set up Python 3.9
67-
uses: actions/setup-python@v5
67+
uses: actions/setup-python@v5.3.0
6868
with:
6969
python-version: 3.9
7070
- name: Build sdist
@@ -73,7 +73,7 @@ jobs:
7373
pip install --upgrade pip build
7474
python -m build --sdist
7575
- name: Upload sdist
76-
uses: actions/upload-artifact@v4
76+
uses: actions/upload-artifact@v4.4.3
7777
with:
7878
name: sdist
7979
path: dist
@@ -83,7 +83,7 @@ jobs:
8383
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux2014_x86_64 bash .github/workflows/docker/buildwheel.sh
8484
8585
- name: Upload Wheels
86-
uses: actions/upload-artifact@v4
86+
uses: actions/upload-artifact@v4.4.3
8787
with:
8888
name: linux-wheels
8989
path: dist/wheelhouse
@@ -96,11 +96,11 @@ jobs:
9696
python: [3.9, "3.10", 3.11, 3.12]
9797
steps:
9898
- name: Download wheels
99-
uses: actions/download-artifact@v4
99+
uses: actions/download-artifact@v4.1.8
100100
with:
101101
name: osx-wheel-${{ matrix.python }}
102102
- name: Set up Python ${{ matrix.python }}
103-
uses: actions/setup-python@v5
103+
uses: actions/setup-python@v5.3.0
104104
with:
105105
python-version: ${{ matrix.python }}
106106
- name: Install wheel and test
@@ -122,11 +122,11 @@ jobs:
122122
python: [3.9, "3.10", 3.11, 3.12]
123123
steps:
124124
- name: Download wheels
125-
uses: actions/download-artifact@v4
125+
uses: actions/download-artifact@v4.1.8
126126
with:
127127
name: linux-wheels
128128
- name: Set up Python
129-
uses: actions/setup-python@v5
129+
uses: actions/setup-python@v5.3.0
130130
with:
131131
python-version: ${{ matrix.python }}
132132
- name: Install wheel and test
@@ -150,16 +150,16 @@ jobs:
150150
id-token: write
151151
steps:
152152
- name: Download all
153-
uses: actions/download-artifact@v4
153+
uses: actions/download-artifact@v4.1.8
154154
- name: Move to dist
155155
run: |
156156
mkdir dist
157157
cp */*.{whl,gz} dist/.
158158
- name: Publish distribution to Test PyPI
159159
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
160-
uses: pypa/gh-action-pypi-publish@release/v1
160+
uses: pypa/gh-action-pypi-publish@v1.12.3
161161
with:
162162
repository_url: https://test.pypi.org/legacy/
163163
- name: Publish distribution to PRODUCTION PyPI
164164
if: github.event_name == 'release'
165-
uses: pypa/gh-action-pypi-publish@release/v1
165+
uses: pypa/gh-action-pypi-publish@v1.12.3

0 commit comments

Comments
 (0)