Skip to content

Commit 86b5a6c

Browse files
authored
bump version, merge pull request #17 from NiftyPET/devel
2 parents 96a9833 + 47d7741 commit 86b5a6c

File tree

4 files changed

+16
-23
lines changed

4 files changed

+16
-23
lines changed

.github/workflows/comment-bot.yml

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
post({
3030
owner: context.repo.owner, repo: context.repo.repo,
3131
comment_id: context.payload.comment.id, content: "eyes"})
32+
github-token: ${{ secrets.GH_TOKEN }}
3233
- name: Tag Commit
3334
run: |
3435
git clone https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} repo
@@ -48,3 +49,4 @@ jobs:
4849
post({
4950
owner: context.repo.owner, repo: context.repo.repo,
5051
comment_id: context.payload.comment.id, content: "rocket"})
52+
github-token: ${{ secrets.GH_TOKEN }}

.github/workflows/test.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Test
22
on: [push, pull_request]
33
jobs:
44
check:
5-
if: github.event_name != 'push' || github.ref != 'refs/heads/devel'
5+
if: github.event_name != 'pull_request' || github.head_ref != 'devel'
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
@@ -66,26 +66,19 @@ jobs:
6666
uses: casperdcl/deploy-pypi@v2
6767
with:
6868
pip: true
69+
gpg_key: ${{ secrets.GPG_KEY }}
6970
password: ${{ secrets.PYPI_TOKEN }}
7071
upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
7172
- name: Changelog
7273
run: git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md
7374
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
74-
id: create_release
75-
uses: actions/create-release@v1
75+
uses: softprops/action-gh-release@v1
7676
env:
7777
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
7878
with:
79-
tag_name: ${{ github.ref }}
80-
release_name: ninst ${{ github.ref }} beta
79+
name: ninst ${{ github.ref }} beta
8180
body_path: _CHANGES.md
8281
draft: true
83-
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
84-
uses: actions/upload-release-asset@v1
85-
env:
86-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
87-
with:
88-
upload_url: ${{ steps.create_release.outputs.upload_url }}
89-
asset_path: dist/${{ steps.dist.outputs.whl }}
90-
asset_name: ${{ steps.dist.outputs.whl }}
91-
asset_content_type: application/zip
82+
files: |
83+
dist/${{ steps.dist.outputs.whl }}
84+
dist/${{ steps.dist.outputs.whl_asc }}

.gitignore

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
*.py[co]
22
*.so
33
__pycache__/
4-
5-
MANIFEST
64
/niftypet/ninst/_dist_ver.py
5+
MANIFEST
6+
/*.egg*/
77
/build/
88
/dist/
9-
/*.egg*/
10-
/.eggs/
11-
129
/.coverage*
1310
/coverage.xml
1411
/.pytest_cache/

.pre-commit-config.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_language_version:
22
python: python3
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.4.0
5+
rev: v4.0.1
66
hooks:
77
- id: check-added-large-files
88
- id: check-case-conflict
@@ -26,19 +26,20 @@ repos:
2626
exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$
2727
args: [-i]
2828
- repo: https://gitlab.com/pycqa/flake8
29-
rev: 3.8.4
29+
rev: 3.9.2
3030
hooks:
3131
- id: flake8
32+
args: [-j8]
3233
additional_dependencies:
3334
- flake8-bugbear
3435
- flake8-comprehensions
3536
- flake8-debugger
3637
- flake8-string-format
3738
- repo: https://github.com/psf/black
38-
rev: 19.10b0
39+
rev: 21.6b0
3940
hooks:
4041
- id: black
4142
- repo: https://github.com/PyCQA/isort
42-
rev: 5.7.0
43+
rev: 5.8.0
4344
hooks:
4445
- id: isort

0 commit comments

Comments
 (0)