Skip to content

fix release

fix release #7

Workflow file for this run

name: Deploy
on:
push:
tags:
- '**'
workflow_dispatch:
pull_request:
paths:
- .github/workflows/deploy.yml
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/numba-stats
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed by setuptools_scm
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install --upgrade pip build
- run: python -m build
- run: python -m pip install --prefer-binary $(echo dist/*.whl)'[test]'
- run: python -m pytest
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && contains(github.event.ref, '/tags/')