Skip to content

Merge pull request #1 from DavidStirling/master #2

Merge pull request #1 from DavidStirling/master

Merge pull request #1 from DavidStirling/master #2

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
architecture: x64
python-version: 3.8
- name: Install dependencies
run: |
pip install --upgrade pip setuptools build numpy
pip install .[test]
- name: Run tests
run: pytest
- name: Build wheel
run: python -m build --wheel
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
path: dist/*.whl
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*.whl