Skip to content

Commit

Permalink
Add python 3.10 tests, and update GitHub actions (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaFicarelli committed Mar 17, 2023
1 parent b9e698e commit ecb3f19
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
name: Build and publish on PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.10"
- name: Build a source tarball
run:
python setup.py sdist

- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
12 changes: 6 additions & 6 deletions .github/workflows/run-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -28,10 +28,10 @@ jobs:
run: |
tox
- name: Upload to codecov
if: ${{matrix.python-version == '3.9'}}
uses: codecov/codecov-action@v1
if: ${{matrix.python-version == '3.10'}}
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
files: ./coverage.xml
flags: pytest
name: "bluepysnap-py39"
name: "bluepysnap-py310"
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

Version v1.0.5
--------------

Improvements
~~~~~~~~~~~~
- Add python 3.10 tests, and update GitHub actions.


Version v1.0.4
--------------

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def __init__(self, *args, **kwargs):
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: POSIX",
"Topic :: Scientific/Engineering",
"Topic :: Utilities",
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ name = bluepysnap
[tox]
envlist =
lint
py{37,38,39}
py{37,38,39,310}

ignore_basepython_conflict = true

[testenv]
basepython=python3.9
basepython=python3.10
deps =
pytest
pytest-cov
Expand Down Expand Up @@ -71,4 +71,5 @@ convention = google
python =
3.7: py37
3.8: py38
3.9: py39, lint, docs
3.9: py39
3.10: py310, lint, docs

0 comments on commit ecb3f19

Please sign in to comment.