add pre-commit and apply style fixes #100
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| release: | |
| types: [released] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@d9b81a07e789d1b1921ab5fe33de2ddcbbd02c3f # v2.3.0 | |
| with: | |
| upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }} | |
| targets: | | |
| # Linux wheels | |
| - cp3*-manylinux_x86_64 | |
| # MacOS wheels | |
| - cp3*-macosx_x86_64 | |
| - cp3*-macosx_arm64 | |
| # Windows wheels | |
| - cp3*-win32 | |
| - cp3*-win_amd64 | |
| sdist: true | |
| test_command: python -c "from stsci.imagestats import buildHistogram, computeMean" | |
| secrets: | |
| pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} |