Skip to content

Commit

Permalink
fix: release next ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanchristopheruel committed May 28, 2024
1 parent b2498d8 commit 754a717
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
build:
if: github.event_name == 'pull_request' && github.ref == 'refs/heads/main'
if: "github.event_name == 'pull_request'"
name: Build and Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -39,8 +39,7 @@ jobs:
pytest
bump_version_and_tag:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
#if: "github.event_name == 'push' && github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'bump:')"
if: "github.event_name == 'push' && github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'bump:')"
name: Bump version and tag on main
runs-on: ubuntu-latest
steps:
Expand All @@ -56,20 +55,20 @@ jobs:
- name: Print Version
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
- name: Push using ssh
#if: github.event_name == 'push'
if: github.event_name == 'push'
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git push --tags
git push
build_wheels:
if: "startsWith(github.event.head_commit.message, 'bump:')"
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14]
#os: [ubuntu-latest, windows-latest, macos-13, macos-14]
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tag_format = "v$version"
[tool.cibuildwheel]
test-command = "pytest {project}/tests"
test-extras = ["test"]
test-skip = ["*universal2:arm64", "pp*", "cp{38,39,310,311,312}-manylinux_i686", "cp38-macosx_*:arm64", "*musllinux*", "*ppc64le", "*s390x"]
test-skip = ["*universal2:arm64", "pp*", "cp{38,39,310,311,312}-manylinux_i686", "cp38-macosx_arm64", "*musllinux*", "*ppc64le", "*s390x"]
# Setuptools bug causes collision between pypy and cpython artifacts
before-build = "rm -rf {project}/build"

Expand Down

0 comments on commit 754a717

Please sign in to comment.