Skip to content

chore: fix download artifacts action #353

chore: fix download artifacts action

chore: fix download artifacts action #353

Workflow file for this run

name: Test on MacOS
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
macos-version: ['macos-12', 'macos-latest']
include:
- experimental: false
- macos-version: 'macos-latest'
experimental: true
- python-version: '3.13'
experimental: true
fail-fast: false
runs-on: ${{ matrix.macos-version }}
continue-on-error: ${{ matrix.experimental }}
name: Test py ${{ matrix.python-version }}
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: make build_deps
- run: pip install -r requirements-nn.txt
- run: pip install .[all]
- run: make test
- run: make dist_wheel
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.python-version }}
path: dist/*.whl
release:
needs: [test]
# release when using `tags` or `release` branch
if: ${{ startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/release' }}
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: wheel-*
path: dist/
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
name: publish pypi
with:
user: __token__
password: ${{ secrets.PYPI }}