Skip to content

Commit

Permalink
build(actions): update tested python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
apaparazzi0329 committed Dec 4, 2024
1 parent af0ef69 commit 5a0f046
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.11', '3.12', '3.13']
os: [ubuntu-latest, windows-latest]
exclude:
- os: windows-latest
python-version: '3.9'
python-version: '3.11'

steps:
- uses: actions/checkout@v2
Expand All @@ -45,33 +45,33 @@ jobs:
pip3 install -r requirements.txt --use-deprecated=legacy-resolver
pip3 install -r requirements-dev.txt --use-deprecated=legacy-resolver
pip3 install --editable . --use-deprecated=legacy-resolver
- name: Execute Python 3.9 unit tests
if: matrix.python-version == '3.9'
- name: Execute Python 3.11 unit tests
if: matrix.python-version == '3.11'
run: |
pip3 install -U python-dotenv
py.test test/unit
- name: Execute Python 3.10 unit tests (windows)
if: matrix.python-version == '3.10' && matrix.os == 'windows-latest'
- name: Execute Python 3.12 unit tests (windows)
if: matrix.python-version == '3.12' && matrix.os == 'windows-latest'
run: |
pip3 install -U python-dotenv
py.test test/unit --reruns 3
- name: Execute Python 3.10 unit tests (ubuntu)
if: matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'
- name: Execute Python 3.12 unit tests (ubuntu)
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
run: |
pip3 install -U python-dotenv
py.test test/unit --reruns 3 --cov=ibm_watson
- name: Execute Python 3.11 unit tests (windows)
if: matrix.python-version == '3.11' && matrix.os == 'windows-latest'
- name: Execute Python 3.13 unit tests (windows)
if: matrix.python-version == '3.13' && matrix.os == 'windows-latest'
run: |
pip3 install -U python-dotenv
py.test test/unit --reruns 3
- name: Execute Python 3.11 unit tests (ubuntu)
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
- name: Execute Python 3.13 unit tests (ubuntu)
if: matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest'
run: |
pip3 install -U python-dotenv
py.test test/unit --reruns 3
- name: Upload coverage to Codecov
if: matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
with:
name: py${{ matrix.python-version }}-${{ matrix.os }}

0 comments on commit 5a0f046

Please sign in to comment.