Skip to content

Commit

Permalink
Fix inner action and OS specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Dec 1, 2024
1 parent acce3a7 commit abda3d2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ on:
branches: [ dev, main ]

jobs:
test:

runs-on: ${{ matrix.os }}
test-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]


services:
# Label used to access the service container
redis:
Expand All @@ -27,18 +24,35 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2

- uses: ./.github/workflows/test_inner
with:
os: ubuntu-latest
python-version: ${{ matrix.python-version }}


test-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2

- uses: ./.github/workflows/test_inner
with:
os: ${{ matrix.os }}
os: windows-latest
python-version: ${{ matrix.python-version }}

coverage-check:
runs-on: ubuntu-latest
needs:
- test
- test-linux

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_inner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
python3 -m pip install --upgrade pip
python3 -m pip install pytest
python3 -m pip install pytest-cov
python3 -m pip install -e .[tests,gym]
python3 -m pip install -e .[tests,gym,redis]
- name: Tests
shell: bash
Expand Down

0 comments on commit abda3d2

Please sign in to comment.