From abda3d263fa5f08df3e724c527ad33c1c0fb5822 Mon Sep 17 00:00:00 2001 From: Elton Cardoso do Nascimento <43186596+EltonCN@users.noreply.github.com> Date: Sun, 1 Dec 2024 19:02:54 -0300 Subject: [PATCH] Fix inner action and OS specific test --- .github/workflows/test.yml | 28 ++++++++++++++++++------- .github/workflows/test_inner/action.yml | 2 +- 2 files changed, 22 insertions(+), 8 deletions(-) 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