Skip to content

Commit

Permalink
add integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ncloudioj committed Jan 24, 2025
1 parent fbb7f5c commit 95acac7
Showing 1 changed file with 58 additions and 4 deletions.
62 changes: 58 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
python-version: "3.12"
cache: "poetry"
- name: Run code linting
- name: Run Code Linting
run: make -k lint
unit-tests:
runs-on: ubuntu-latest
Expand All @@ -25,14 +25,68 @@ jobs:
with:
python-version: "3.12"
cache: "poetry"
- name: Create workspace
- name: Create Workspace
run: mkdir -p workspace
- name: Run unit tests
run: make unit-tests
env:
TEST_RESULTS_DIR: workspace/test-results
- name: Generate test coverage
- name: Generate Test Coverage
run: make coverage-unit
- uses: actions/upload-artifact@v4
name: unit-test-results
with:
path: workspace/test-results/
path: |
workspace/test-results
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Create Workspace
run: mkdir -p workspace
- name: Run Integration Tests
run: make integration-tests
env:
TEST_RESULTS_DIR: workspace/test-results
- name: Generate Test Coverage
run: make coverage-integration
- uses: actions/upload-artifact@v4
name: integration-test-results
with:
path: |
workspace/test-results
test-coverage-checks:
needs: [unit-tests, integration-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Create Workspace
run: mkdir -p workspace
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: workspace
merge-multiple: true
- name: Evaluate Minimum Test Coverage
run: make test-coverage-check
env:
TEST_RESULTS_DIR: workspace/test-results
- name: Generate Coverage
run: make coverage-combined
- uses: actions/upload-artifact@v4
name: overall-test-coverage
with:
path: |
workspace/test-results/coverage.json

0 comments on commit 95acac7

Please sign in to comment.