Skip to content

Commit

Permalink
feat: Update workflows and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
smoia committed Jul 15, 2024
1 parent e7156a8 commit 6881626
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
auto-release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
# Set skip ci to avoid loops
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
# Set bash as default shell for jobs
Expand All @@ -19,7 +19,7 @@ jobs:
shell: bash
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Fetch all history for all branches and tags
fetch-depth: 0
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-22.04

steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*
32 changes: 0 additions & 32 deletions .github/workflows/pythonpublish.yml

This file was deleted.

9 changes: 4 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
name = phys2denoise
url = https://github.com/physiopy/phys2denoise
download_url = https://github.com/physiopy/phys2denoise
author = phys2denoise developers
maintainer = Stefano Moia
author = The Physiopy Community
maintainer = The Physiopy Community
maintainer_email = [email protected]
classifiers =
Development Status :: 1 - Planning
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3
license = Apache-2.0
description = Python library to convert physiological data files into BIDS format
long_description = file:README.md
Expand Down

0 comments on commit 6881626

Please sign in to comment.