Skip to content

Commit 1cb2d50

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 2c17048 + 429d19f commit 1cb2d50

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-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

.tekton/odh-base-image-cuda-py312-ubi9-push.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apiVersion: tekton.dev/v1
22
kind: PipelineRun
3+
# test
34
metadata:
45
annotations:
56
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/notebooks?rev={{revision}}

.tekton/odh-base-image-rocm-py312-ubi9-push.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apiVersion: tekton.dev/v1
22
kind: PipelineRun
3+
# test
34
metadata:
45
annotations:
56
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/notebooks?rev={{revision}}

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)