Skip to content

Commit

Permalink
Moved unit tests to separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Apr 3, 2024
1 parent 6e32d60 commit 83220b8
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/check_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,29 @@ on:
- "main"

jobs:
run_unit_tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Python & Poetry Environment
uses: ./.github/actions/prepare_poetry_env

- name: Run Unit Tests
run: >
poetry run pytest
--capture=no
--override-ini=log_cli=true
--override-ini=log_cli_level=INFO
test/unit
run_build_ai_lab_tests:
environment: AWS_CI_TESTS
runs-on: ubuntu-latest
needs: run_unit_tests

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -36,14 +56,6 @@ jobs:
- name: Setup Python & Poetry Environment
uses: ./.github/actions/prepare_poetry_env

- name: Run Unit Tests
run: >
poetry run pytest
--capture=no
--override-ini=log_cli=true
--override-ini=log_cli_level=INFO
test/unit
- name: Run Integration Tests
run: >
poetry run pytest
Expand All @@ -60,6 +72,7 @@ jobs:
if: "contains(github.event.head_commit.message, '[run-notebook-tests]')"
environment: AWS_SAGEMAKER
runs-on: ubuntu-latest
needs: run_unit_tests

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -87,14 +100,6 @@ jobs:
- name: Setup Python & Poetry Environment
uses: ./.github/actions/prepare_poetry_env

- name: Run Unit Tests
run: >
poetry run pytest
--capture=no
--override-ini=log_cli=true
--override-ini=log_cli_level=INFO
test/unit
- name: Run notebook tests
run: >
poetry run pytest
Expand Down

0 comments on commit 83220b8

Please sign in to comment.