Skip to content

Commit 429d19f

Browse files
authored
NO-JIRA: chore(ci): introduce a make test target (opendatahub-io#2228)
1 parent fd05786 commit 429d19f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/code-quality.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@ jobs:
4848
run: uv version
4949

5050
- name: Install deps
51+
id: install-deps
5152
run: uv sync --locked
5253

5354
# https://github.com/pre-commit/action
5455
- name: Run pre-commit on all files
56+
if: ${{ steps.install-deps.conclusion == 'success' && !cancelled() }}
5557
run: |
5658
uv run pre-commit run --all-files
5759
58-
- run: uv run pytest
60+
- run: make test
61+
if: ${{ steps.install-deps.conclusion == 'success' && !cancelled() }}
5962

6063
code-static-analysis:
6164
runs-on: ubuntu-latest

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,3 +512,8 @@ endif
512512
.PHONY: print-release
513513
print-release:
514514
@echo "$(RELEASE)"
515+
516+
.PHONY: test
517+
test:
518+
@echo "Running quick static tests"
519+
uv run pytest

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Make sure the following tools are installed in your environment:
1616
- podman/docker
1717
- python
1818
- pipenv
19-
- make
19+
- make (on macOS install/use: gmake)
2020
- curl
2121

2222
### Installation
@@ -76,9 +76,11 @@ uv sync --locked
7676
By completing configuration in previous section, you are able to run any tests that don't need to start a container using following command:
7777

7878
```
79-
uv run pytest
79+
make test
8080
```
8181

82+
Use `gmake test` if you're on macOS.
83+
8284
##### Container selftests
8385

8486
We're using [Testcontainers.com](https://testcontainers.com/) to run containers from Python tests.

0 commit comments

Comments
 (0)