Skip to content

[pre-commit.ci] pre-commit autoupdate (#56) #237

[pre-commit.ci] pre-commit autoupdate (#56)

[pre-commit.ci] pre-commit autoupdate (#56) #237

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: 3
jobs:
checks:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-12, windows-latest]
session: [dist, test]
name: ${{ matrix.session }} on ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: awvwgk/setup-fortran@main
id: setup-fortran
if: runner.os != 'Windows'
# We aren't using this yet, and takes 4 mins to setup on Windows
# On macOS this causes a bug to be hit on macos-13+ and CMake, gcc14 may fix
with:
compiler: gcc
version: 12
- uses: yezz123/setup-uv@v4
- uses: wntrblm/nox@2024.04.15
- run: nox -s ${{ matrix.session }}
free-threading:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-13, macos-14]
name: cibw on ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: yezz123/setup-uv@v4
- uses: pypa/cibuildwheel@v2.19
with:
package-dir: projects/hello-free-threading
env:
CIBW_PRERELEASE_PYTHONS: True
pass:
if: always()
needs: [checks]
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}