Skip to content

Rename to brainglobe-space #58

Rename to brainglobe-space

Rename to brainglobe-space #58

Workflow file for this run

name: Run tests
on:
push:
branches:
- "main"
tags:
- "v**"
pull_request:
workflow_dispatch:
concurrency:
# Cancel this workflow if it is running,
# and then changes are applied on top of the HEAD of the branch,
# triggering another run of the workflow
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linting:
name: Check Linting
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v2
manifest:
name: Check Manifest
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v2
test:
name: Run package tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.9"
steps:
- uses: neuroinformatics-unit/actions/test@v1
with:
python-version: ${{ matrix.python-version }}
build_sdist_wheel:
name: Build source distribution and wheel
needs: [test, linting, manifest]
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TWINE_API_KEY }}