Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
e-koch committed Apr 19, 2024
1 parent bef72f2 commit f7f4e2d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
toxenv: py39-test

- os: ubuntu-latest
python-version: 3.8
name: Python 3.8 with minimal dependencies
toxenv: py38-test
python-version: 3.10
name: Python 3.10 with minimal dependencies
toxenv: py310-test

- os: ubuntu-latest
python-version: 3.7
name: Python 3.7 with minimal dependencies
python-version: 3.11
name: Python 3.11 with minimal dependencies
toxenv: py37-test

- os: ubuntu-latest
Expand All @@ -36,34 +36,34 @@ jobs:
toxenv: py39-test-dev

- os: ubuntu-latest
python-version: 3.9
name: Python 3.9, all dependencies, and dev versions of key dependencies
toxenv: py39-test-dev
python-version: 3.11
name: Python 3.11, all dependencies, and dev versions of key dependencies
toxenv: py311-test-dev

- os: ubuntu-latest
python-version: 3.9
name: Python 3.9, all dependencies, and coverage
toxenv: py39-test-all-cov
python-version: 3.11
name: Python 3.11, all dependencies, and coverage
toxenv: py311-test-all-cov

- os: macos-latest
python-version: 3.9
name: Python 3.9 with all dependencies on MacOS X
toxenv: py39-test-all-dev
python-version: 3.11
name: Python 3.11 with all dependencies on MacOS X
toxenv: py311-test-all-dev

# - os: windows-latest
# python-version: 3.7
# name: Python 3.7, with all dependencies on Windows
# toxenv: py37-test-all-dev

- os: ubuntu-latest
python-version: 3.9
python-version: 3.11
name: Documentation
toxenv: build_docs

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 testing dependencies
Expand All @@ -72,6 +72,6 @@ jobs:
run: tox -v -e ${{ matrix.toxenv }}
- name: Upload coverage to codecov
if: ${{ contains(matrix.toxenv,'-cov') }}
uses: codecov/codecov-action@v1.0.13
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.9'
python-version: '3.11'
- name: Install build
run: python -m pip install build
- name: Build sdist
Expand All @@ -26,11 +26,11 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@master
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{36,37,38,39}-test{,-all,-dev,-cov}
py{36,37,38,39,310,311}-test{,-all,-dev,-cov}
build_docs
codestyle
requires =
Expand Down

0 comments on commit f7f4e2d

Please sign in to comment.