Skip to content

Commit

Permalink
Update workflow for Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Jul 6, 2024
1 parent e0605bb commit 99450ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
# The type of runner that the job will run on
strategy:
matrix:
python-versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python-versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ matrix.python-versions }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:

strategy:
matrix:
python-versions: [ 3.8 ]
python-versions: [ 3.12 ]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ matrix.python-versions }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
# This workflow contains a single job called "release"
release:
name: Create Release
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
python-versions: [3.8]
python-versions: [3.12]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -42,7 +42,7 @@ jobs:
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md

- uses: actions/setup-python@v2
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ matrix.python-versions }}

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[tox]
isolated_build = true
envlist = py37, py38, py39, py310, py311, py312, format, lint, build
envlist = py38, py39, py310, py311, py312, format, lint, build

[gh-actions]
python =
3.13: py313
3.12: py312
3.11: py311
3.10: py310
3.9: py39
3.8: py38, format, lint, build
3.7: py37

[testenv]
allowlist_externals = pytest
Expand Down

0 comments on commit 99450ea

Please sign in to comment.