forked from xorbitsai/xorbits
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.47 KB
/
Copy pathkubernetes.yaml
File metadata and controls
61 lines (51 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Kubernetes CI
on:
push:
branches:
- '*'
pull_request:
types: ['opened', 'reopened', 'synchronize']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Start minikube
uses: medyagh/setup-minikube@master
with:
driver: none
- name: Install kubernetes dependencies
shell: bash
run: |
python -m pip install kubernetes
kubectl get pods -A
- name: Install xorbits
run: |
pip install -e ".[dev,extra]"
working-directory: ./python
- name: Test with pytest
run: |
pytest -s --ignore xorbits/_mars/ -o log_cli=true --log-cli-level=DEBUG --timeout=1500 \
-W ignore::PendingDeprecationWarning \
--cov-config=setup.cfg --cov-report=xml --cov=xorbits/deploy xorbits/deploy/kubernetes
working-directory: ./python
- name: Report coverage data
uses: codecov/codecov-action@v3
with:
working-directory: ./python/xorbits/deploy
flags: kubernetes