Skip to content

Commit eafb561

Browse files
committed
Replace test workflow with tox
1 parent 635a642 commit eafb561

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,6 @@ permissions:
1717
contents: read
1818

1919
jobs:
20-
job_metadata:
21-
if: github.repository == 'nipreps/niworkflows'
22-
runs-on: ubuntu-latest
23-
outputs:
24-
commit_message: ${{ steps.get_commit_message.outputs.commit_message }}
25-
version: ${{ steps.show_version.outputs.version }}
26-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v4
29-
with:
30-
fetch-depth: 0
31-
- name: Print head git commit message
32-
id: get_commit_message
33-
run: |
34-
if [[ -z "$COMMIT_MSG" ]]; then
35-
COMMIT_MSG=$(git show -s --format=%s $REF)
36-
fi
37-
echo commit_message=$COMMIT_MSG | tee -a $GITHUB_OUTPUT
38-
env:
39-
COMMIT_MSG: ${{ github.event.head_commit.message }}
40-
REF: ${{ github.event.pull_request.head.sha }}
41-
- name: Detect version
42-
id: show_version
43-
run: |
44-
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
45-
VERSION=${GITHUB_REF##*/}
46-
else
47-
pipx run hatch version # Once to avoid output of initial setup
48-
VERSION=$( pipx run hatch version )
49-
fi
50-
echo version=$VERSION | tee -a $GITHUB_OUTPUT
51-
5220
build:
5321
if: github.repository == 'nipreps/niworkflows'
5422
runs-on: ubuntu-latest
@@ -118,7 +86,7 @@ jobs:
11886
datalad get -J 2 -r ds000003 ds000030/sub-10228/func
11987
12088
test:
121-
needs: [build, get_data, job_metadata]
89+
needs: [get_data]
12290
runs-on: ubuntu-latest
12391
strategy:
12492
matrix:

0 commit comments

Comments
 (0)