-
Notifications
You must be signed in to change notification settings - Fork 46
91 lines (79 loc) · 2.2 KB
/
smoke-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
82
83
84
85
86
87
88
89
90
91
name: smoke-test
on:
push:
branches:
- dev
- main
paths:
- 'requirements/**'
- 'scripts/**'
- 'environment.yml'
- 'environment_cuda.yml'
- 'requirements.txt'
- 'requirements_cuda.txt'
- 'setup.py'
- '.github/workflows/smoke-test.yml'
schedule:
- cron: '0 0 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
manual-installation:
name: manual installation test for (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
python-version:
- '3.8'
- '3.9'
- '3.10'
defaults:
run:
shell: bash -l {0}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: pip install deps (CPU)
run: |
python3 -m pip install --upgrade pip wheel setuptools
python3 -m pip install -r requirements/pytorch_cpu.txt
python3 -m pip install -r requirements/base.txt
python3 -m pip install -r requirements/inference.txt
python3 -m pip install -r requirements/export.txt
python3 -m mim install -r requirements/mmlab.txt
python3 -m mim install -e .
python3 --version
python3 -m pip --version
python3 -m pip list
- name: test train deps (CPU)
run: |
python3 tools/train.py --help
auto-installation:
name: auto installation test for (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup deps (shell)
run: |
bash scripts/setup_linux.sh
- name: test train (auto)
run: |
conda run -n sscma python3 tools/train.py --help