Skip to content

Commit

Permalink
Merge pull request #127 from elchupanebrej/feature/refactor_test_matrix
Browse files Browse the repository at this point in the history
Feature/refactor test matrix
  • Loading branch information
elchupanebrej authored Nov 4, 2024
2 parents d24ca7d + a766730 commit de9739a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch:

jobs:
build:
test:

runs-on: ${{ matrix.os }}
timeout-minutes: 30
Expand All @@ -25,13 +25,25 @@ jobs:
- ubuntu-latest
- windows-latest
- macos-latest

exclude:
- python-version: "3.10"
os: windows-latest
- python-version: "3.11"
os: windows-latest
- python-version: "3.12"
os: windows-latest
- python-version: "3.10"
os: macos-latest
- python-version: "3.11"
os: macos-latest
- python-version: "3.12"
os: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Node.js
Expand All @@ -50,14 +62,10 @@ jobs:
npm install cucumber-html-reporter
npm list
- name: Test with tox
if: >
!((matrix.python-version == '3.12' ||
matrix.python-version == '3.11' ||
matrix.python-version == '3.10') &&
(matrix.os =='macos-latest' || matrix.os =='windows-latest'))
run: |
tox
- name: Gather codecov
if: (matrix.python-version == '3.9' || matrix.python-version == '3.13')
run: |
codecov
- name: Build checking
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
Expand Down

0 comments on commit de9739a

Please sign in to comment.