Skip to content

Commit 44af6fd

Browse files
authored
ci: Run Python unit and functional tests together (#959)
1 parent 96cc779 commit 44af6fd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ jobs:
7777
fi
7878
7979
echo "MIN_COVERAGE=$MIN_COVERAGE" >> "$GITHUB_OUTPUT"
80-
- name: Run Unit tests
81-
run: make unittest optional_args="--junitxml=coverage-junit.xml --cov=. --cov-report xml:coverage.xml --cov-fail-under ${{ steps.coverage-value.outputs.MIN_COVERAGE }}"
80+
- name: Run Python Tests
81+
run: make python-test optional_args="--junitxml=coverage-junit.xml --cov=. --cov-report xml:coverage.xml --cov-fail-under ${{ steps.coverage-value.outputs.MIN_COVERAGE }}"
8282
- uses: actions/upload-artifact@v4
8383
if: ${{ !cancelled() }}
8484
with:
@@ -87,8 +87,6 @@ jobs:
8787
coverage-junit.xml
8888
coverage.xml
8989
if-no-files-found: error
90-
- name: Run Functional tests
91-
run: make functionaltest
9290
- name: Setup node
9391
uses: actions/setup-node@v4
9492
with:

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ build-frontend: ## 🏗️ Build the Frontend webapp
3030
@echo -e "\e[34m$@\e[0m" || true
3131
@cd code/frontend && npm install && npm run build
3232

33+
python-test: ## 🧪 Run Python unit + functional tests
34+
@echo -e "\e[34m$@\e[0m" || true
35+
@poetry run pytest -m "not azure" $(optional_args)
36+
3337
unittest: ## 🧪 Run the unit tests
3438
@echo -e "\e[34m$@\e[0m" || true
3539
@poetry run pytest -m "not azure and not functional" $(optional_args)

0 commit comments

Comments
 (0)