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 CI #55

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Updates CI
  • Loading branch information
phschiele authored Jun 18, 2024
commit 669f0249a320398b109e82454adc44d5715740e7
32 changes: 15 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -8,15 +8,13 @@ on:
tags:
- '*'

jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
# Only cancels-in-progress on PRs (head_ref only defined in PR, fallback run_id always unique)
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
@@ -26,16 +24,16 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-20.04, macos-12, windows-2019 ]
python-version: [ 3.7, 3.9, 3.8, "3.10", "3.11", "3.12" ]
python-version: [ 3.9, 3.8, "3.10", "3.11", "3.12" ]

env:
PYTHON_VERSION: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
@@ -91,10 +89,10 @@ jobs:

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set Additional Envs
@@ -109,7 +107,7 @@ jobs:
env:
CIBW_BUILD: "cp3${{env.PYTHON_SUBVERSION}}-*"
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux*"
uses: joerick/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.19.1

- name: Build source
if: ${{env.DEPLOY == 'True' && env.SINGLE_ACTION_CONFIG == 'True'}}
@@ -126,7 +124,7 @@ jobs:

- name: Upload artifacts to github
if: ${{env.DEPLOY == 'True'}}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: wheels
path: ./wheelhouse
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
path: ./wheelhouse