From f7f4e2d83c19a8f2afb56b8f7e533606a9d1c95b Mon Sep 17 00:00:00 2001 From: e-koch Date: Fri, 19 Apr 2024 10:00:53 -0400 Subject: [PATCH] Update CI --- .github/workflows/main.yml | 36 +++++++++++++++++------------------ .github/workflows/publish.yml | 10 +++++----- tox.ini | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 98ad6cc..245485a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -36,19 +36,19 @@ 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 @@ -56,14 +56,14 @@ jobs: # 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 @@ -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 \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 708072b..c881b8e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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 }} diff --git a/tox.ini b/tox.ini index add0626..014b409 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =