Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions to latest major versions #203

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
- name: Install dependencies and set path
run: |
sudo apt-get update
Expand All @@ -27,7 +27,7 @@ jobs:
git commit -m "dummy commit to make meson add in the symlinked directory"
meson dist
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2.2.0
if: startsWith(github.ref, 'refs/tags/') && contains(github.event.ref, 'C_')
with:
draft: True
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.3.0
- name: install clang-format
run: |
pip install clang-format==6.0.1
- uses: pre-commit/[email protected].0
- uses: pre-commit/[email protected].1


test:
Expand All @@ -39,9 +39,9 @@ jobs:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2

- uses: actions/setup-python@v5
- uses: actions/setup-python@v5.3.0
with:
python-version: ${{matrix.python}}

Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
wordsize: [64]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
- name: Build wheel
env:
PYTHON: "py -${{ matrix.python }}-${{ matrix.wordsize }}"
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
rm -rf python/kastore python/*.pyd
${PYTHON} -m pytest -v python
- name: Upload Wheels
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: win-wheel-${{ matrix.python }}-${{ matrix.wordsize }}
path: python/dist
Expand All @@ -61,9 +61,9 @@ jobs:
python: [3.9, "3.10", 3.11, 3.12]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python }}
- name: Build Wheel
Expand All @@ -82,7 +82,7 @@ jobs:
rm -rf python/kastore python/*.so
python -m pytest -v python
- name: Upload Wheels
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: osxarm-wheel-${{ matrix.python }}
path: python/dist
Expand All @@ -92,10 +92,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2

- name: Set up Python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5.3.0
with:
python-version: 3.9

Expand All @@ -107,7 +107,7 @@ jobs:
python -m build --sdist

- name: Upload sdist
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: sdist
path: python/dist
Expand All @@ -118,7 +118,7 @@ jobs:
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux2014_x86_64 bash docker/buildwheel.sh

- name: Set up Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: 3.12

Expand All @@ -134,7 +134,7 @@ jobs:
python -m pytest -v python

- name: Set up Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: 3.12

Expand All @@ -150,7 +150,7 @@ jobs:
python -m pytest -v python

- name: Set up Python 3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: "3.10"

Expand All @@ -166,7 +166,7 @@ jobs:
python -m pytest -v python

- name: Set up Python 3.9
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: 3.9

Expand All @@ -182,7 +182,7 @@ jobs:
python -m pytest -v python

- name: Upload Wheels
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: linux-wheels
path: python/dist/wheelhouse
Expand All @@ -196,16 +196,16 @@ jobs:
id-token: write
steps:
- name: Download all
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
- name: Move to dist
run: |
mkdir dist
cp */*.{whl,gz} dist/.
- name: Publish distribution to Test PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && !contains(github.event.ref, 'C_')
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.12.3
with:
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PRODUCTION PyPI
if: github.event_name == 'release' && !startsWith(github.event.release.tag_name, 'C_')
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.12.3
Loading