Skip to content

Commit

Permalink
int: 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 1e3d034 commit 6a12124
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# # This workflows will create a release using auto when a PR is merged in master.
# This workflows will create a release using auto when a PR is merged in master.

name: Format and auto-release on PR merge
name: Auto-release on PR merge

on:
# ATM, this is the closest trigger to a PR merging
Expand All @@ -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@v2
uses: actions/checkout@v4
with:
# Fetch all history for all branches and tags
fetch-depth: 0
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# # 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
# 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

Expand All @@ -10,15 +10,15 @@ on:
jobs:
deploy:

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.6'
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -29,4 +29,5 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*
11 changes: 4 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
name = <reponame>
url = https://github.com/physiopy/<reponame>
download_url = https://github.com/physiopy/<reponame>
author = Physiopy community
maintainer = Stefano Moia
maintainer_email = s.moia.research@gmail.com
author = The Physiopy Community
maintainer = The Physiopy Community
maintainer_email = physiopy.community@gmail.com
classifiers =
Development Status :: 1 - Planning
Intended Audience :: Science/Research
License :: OSI Approved :: <license>
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3
license = <license>
description = <Description>.
long_description = file:README.md
Expand Down

0 comments on commit 6a12124

Please sign in to comment.