Skip to content

Commit

Permalink
edit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmbland committed Aug 1, 2023
1 parent 234d5b5 commit 725f26c
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 27 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/binder.yaml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish

on:
release:
types: [published]

jobs:

deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}


binder:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: update jupyter dependencies with repo2docker
uses: tsmbland/repo2docker-action@master
with:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
BINDER_CACHE: true
PUBLIC_REGISTRY_CHECK: true


2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: par-segmentation
name: Test

on:
push:
Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ dependencies:
- pip
- pip:
- opencv-python==4.2.0.34
- par-segmentation==0.1.4
- matplotlib-polyroi==0.1.3
- par-segmentation

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='par_segmentation',
version='0.1.5',
version='0.1.6',
license="CC BY 4.0",
author='Tom Bland',
author_email='[email protected]',
Expand Down

0 comments on commit 725f26c

Please sign in to comment.