Skip to content

Commit

Permalink
update workflow to new main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ksarink committed Nov 25, 2022
1 parent d2e9bc8 commit 8a28f5f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: PHOTONAI_neuro tests + TestPyPI deployment @master
name: PHOTONAI_neuro tests

on:
push:
branches: [ master, develop ]
branches: [ main, develop ]
pull_request:
branches: [ master, develop ]
branches: [ main, develop ]

jobs:
pytest:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
name: Build and publish to TestPyPI
runs-on: ubuntu-22.04
needs: pytest
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
Expand All @@ -48,7 +48,7 @@ jobs:
dt=$(date '+%Y.%m.%d.%H.%M.%S')
sed -i "s/^__version__.*/__version__ = '$dt'/g" setup.py
- name: Install pypa/build
run: pip install build
run: pip install build pbr wheel
- name: Build a binary wheel and a source tarball
run: python -m build --sdist -n --wheel --outdir dist/ .
- name: Publish distribution to Test PyPI
Expand Down

0 comments on commit 8a28f5f

Please sign in to comment.