Skip to content

Commit 7e992be

Browse files
committed
Add basic usage test
1 parent 07a9746 commit 7e992be

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Basic Usage
16+
17+
on:
18+
workflow_call:
19+
20+
permissions:
21+
contents: read
22+
23+
jobs:
24+
build-and-test:
25+
runs-on: ubuntu-22.04
26+
strategy:
27+
matrix:
28+
python-version: ["3.10", "3.11"]
29+
steps:
30+
- uses: actions/checkout@v3
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v3
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
- name: Prepare directories
36+
run: mkdir -p ~/.cache/pip
37+
- name: Restore cached dependencies
38+
uses: actions/cache@v4
39+
with:
40+
path: |
41+
/usr/local/bin/kubectl-kueue
42+
~/.cache/pip
43+
${{env.pythonLocation}}
44+
key: xpk-deps-${{matrix.python-version}}-${{github.run_id}}-${{github.run_attempt}}
45+
restore-keys: xpk-deps-${{matrix.python-version}}-
46+
- name: Run xpk
47+
run: xpk

.github/workflows/build_tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ jobs:
6868
run-unit-tests:
6969
needs: [install-dependencies]
7070
uses: ./.github/workflows/reusable_unit_tests.yaml
71+
run-basic-usage-test:
72+
needs: [install-dependencies]
73+
uses: ./.github/workflows/basic_usage_test.yaml

0 commit comments

Comments
 (0)