Skip to content

Commit

Permalink
Trying macos-14 builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ciobanu committed Feb 27, 2024
1 parent 1fa60ed commit a75feac
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: CI

on: [push, pull_request]
#on: [push, pull_request]
on: workflow_dispatch

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
#os: [ubuntu-latest, macos-latest, windows-latest]
#python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [macos-14]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
Expand Down Expand Up @@ -71,29 +74,29 @@ jobs:
name: wheelhouse
path: "./wheelhouse/*.whl"

publish:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4

- name: sdist
run: |
python -m pip install -U build pip
python -m build -s
- name: download
uses: actions/download-artifact@v3
with:
name: wheelhouse
path: dist

- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}
# publish:
# runs-on: ubuntu-latest
# needs:
# - build
# steps:
# - uses: actions/checkout@v4
#
# - uses: actions/setup-python@v4
#
# - name: sdist
# run: |
# python -m pip install -U build pip
# python -m build -s
#
# - name: download
# uses: actions/download-artifact@v3
# with:
# name: wheelhouse
# path: dist
#
# - name: Publish package to PyPI
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# uses: pypa/[email protected]
# with:
# user: __token__
# password: ${{ secrets.pypi_password }}

0 comments on commit a75feac

Please sign in to comment.