-
Notifications
You must be signed in to change notification settings - Fork 50
81 lines (73 loc) · 1.96 KB
/
test.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: SFCTL-test
on:
push:
pull_request:
schedule:
- cron: 0 0 * * * # daily
jobs:
test:
name: run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --force-reinstall -e ./src
pip install --force-reinstall -r requirements.txt
- name: Pre Test configuration
run: |
python scripts/check_and_use_custom_sdk.py
sfctl settings telemetry set-telemetry --off
- name: test
run: |
scripts/verify.sh local
build_wheel:
name: build wheel
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get versions
run: |
echo "pip version:"
pip -V
echo "python version:"
python -V
echo "git version:"
git --version
echo "bash version:"
bash --version
echo "os version:"
cat /proc/version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --force-reinstall -e ./src
pip install --force-reinstall -r requirements.txt
- name: install wheel
run: |
pip install wheel==0.37.1
- name: Build Wheel
run: |
cd src
python setup.py bdist_wheel --universal
- name: upload wheel
uses: actions/upload-artifact@v2
if: always()
with:
name: wheel
path: /home/runner/work/service-fabric-cli/service-fabric-cli/src/dist*