Skip to content

Commit

Permalink
Merge pull request #59 from SMTG-UCL/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
kavanase authored Aug 30, 2023
2 parents 3639a9d + b8e2a44 commit c14326c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Release and publish

on:
push:
branches:
- main
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_run:
workflows: [ "Tests" ]
branches: [ main ]
types:
- completed # only release when tests have passed

workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
# only run when tests have passed (or manually triggered)

steps:
- uses: actions/checkout@v1
Expand All @@ -22,12 +25,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm wheel
pip install -e .[tests]
- name: Test
run: |
pytest --mpl tests # test everything
- name: Build packages
run: |
python setup.py sdist bdist_wheel
Expand Down

0 comments on commit c14326c

Please sign in to comment.