Skip to content

Commit ca2cfa9

Browse files
authored
Merge pull request #31 from effigies/ci/update_workflows
CI: Update actions, test on Python 3.10
2 parents 2af52c1 + 8791679 commit ca2cfa9

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
python-version: [3.7, 3.9] # Check oldest and newest versions
25+
python-version: [3.7, '3.10'] # Check oldest and newest versions
2626
pip-flags: ['', '--editable']
2727
pydra:
2828
- 'pydra'
2929
- '--editable git+https://github.com/nipype/pydra.git#egg=pydra'
3030

3131
steps:
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v3
3333
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v4
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737
- name: Install build dependencies
@@ -51,12 +51,12 @@ jobs:
5151
runs-on: ubuntu-latest
5252
strategy:
5353
matrix:
54-
python-version: [3.7, 3.8, 3.9]
54+
python-version: [3.7, 3.8, 3.9, '3.10']
5555

5656
steps:
57-
- uses: actions/checkout@v2
57+
- uses: actions/checkout@v3
5858
- name: Set up Python ${{ matrix.python-version }}
59-
uses: actions/setup-python@v2
59+
uses: actions/setup-python@v4
6060
with:
6161
python-version: ${{ matrix.python-version }}
6262
- name: Install build dependencies
@@ -71,7 +71,7 @@ jobs:
7171
run: |
7272
pytest -sv --doctest-modules pydra/tasks/$SUBPACKAGE \
7373
--cov pydra.tasks.$SUBPACKAGE --cov-report xml
74-
- uses: codecov/codecov-action@v1
74+
- uses: codecov/codecov-action@v3
7575
if: ${{ always() }}
7676

7777

@@ -82,12 +82,12 @@ jobs:
8282
matrix:
8383
python-version: [3.9]
8484
steps:
85-
- uses: actions/checkout@v2
85+
- uses: actions/checkout@v3
8686
with:
8787
submodules: recursive
8888
fetch-depth: 0
8989
- name: Set up Python ${{ matrix.python-version }}
90-
uses: actions/setup-python@v2
90+
uses: actions/setup-python@v4
9191
with:
9292
python-version: ${{ matrix.python-version }}
9393
- name: Install build tools
@@ -96,7 +96,7 @@ jobs:
9696
run: python -m build
9797
- name: Check distributions
9898
run: twine check dist/*
99-
- uses: actions/upload-artifact@v2
99+
- uses: actions/upload-artifact@v3
100100
with:
101101
name: distributions
102102
path: dist/

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ All tasks will be inserted into the `pydra.tasks.<yourtaskpackagename>` namespac
2424

2525
# Features of this template
2626

27-
## Versioneer
27+
## Tag-based versioning
2828

29-
The [versioneer](https://github.com/warner/python-versioneer) tool allows for versioning based
29+
The [setuptools_scm](https://github.com/pypa/setuptools_scm) tool allows for versioning based
3030
on the most recent git tag. The release process can thus be:
3131

3232
```Shell
3333
git tag -a 1.0.0
34-
python setup.py sdist bdist_wheel
34+
python -m build
3535
twine upload dist/*
3636
```
3737

3838
Note that uploading to PyPI is done via [Continuous integration](#continuous-integration)) when
3939
a tag is pushed to the repository, so only the first step needs to be donne manually.
4040

4141
Note also that we assume tags will be version numbers and not be prefixed with `v` or some other
42-
string. See Versioneer documentation for alternative configurations.
42+
string. See `setuptools_scm` documentation for alternative configurations.
4343

4444
## Namespace packages
4545

@@ -92,7 +92,7 @@ task packages.
9292
## For developers
9393

9494
Install repo in developer mode from the source directory. It is also useful to
95-
install pre-commit to take care of styling via black:
95+
install pre-commit to take care of styling via [black](https://black.readthedocs.io/):
9696

9797
```
9898
pip install -e .[dev]

0 commit comments

Comments
 (0)