ci(workflows): update actions

This commit is contained in:
Enno Hermann 2024-04-04 18:18:55 +02:00
parent aa40fd277b
commit 107e22c689
3 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ on:
jobs: jobs:
docker-build: docker-build:
name: "Build and push Docker image" name: "Build and push Docker image"
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
arch: ["amd64"] arch: ["amd64"]
@ -18,7 +18,7 @@ jobs:
- "nvidia/cuda:11.8.0-base-ubuntu22.04" # GPU enabled - "nvidia/cuda:11.8.0-base-ubuntu22.04" # GPU enabled
- "python:3.10.8-slim" # CPU only - "python:3.10.8-slim" # CPU only
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:

View File

@ -8,7 +8,7 @@ defaults:
bash bash
jobs: jobs:
build-sdist: build-sdist:
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Verify tag matches version - name: Verify tag matches version
@ -33,7 +33,7 @@ jobs:
name: sdist name: sdist
path: dist/*.tar.gz path: dist/*.tar.gz
build-wheels: build-wheels:
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.9", "3.10", "3.11"] python-version: ["3.9", "3.10", "3.11"]
@ -55,7 +55,7 @@ jobs:
name: wheel-${{ matrix.python-version }} name: wheel-${{ matrix.python-version }}
path: dist/*-manylinux*.whl path: dist/*-manylinux*.whl
publish-artifacts: publish-artifacts:
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
needs: [build-sdist, build-wheels] needs: [build-sdist, build-wheels]
environment: environment:
name: release name: release

View File

@ -15,9 +15,9 @@ jobs:
python-version: [3.9] python-version: [3.9]
experimental: [false] experimental: [false]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64