diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b3442fe..86b5cf4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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 diff --git a/.github/workflows/test_inner/action.yml b/.github/workflows/test_inner/action.yml index 8d18349..b370f7f 100644 --- a/.github/workflows/test_inner/action.yml +++ b/.github/workflows/test_inner/action.yml @@ -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