-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 1.14 KB
/
ci.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
name: ci
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ['3.8']
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- name: Install make
if: matrix.os == 'windows-latest'
run: |
choco install make
- name: Install main
run: |
pip install -e git+https://github.com/osamproject/osam-core.git#egg=osam-core
pip install -e git+https://github.com/osamproject/osam-efficientsam.git#egg=osam-efficientsam
pip install -e git+https://github.com/osamproject/osam-sam.git#egg=osam-sam
pip install -e git+https://github.com/osamproject/osam-yoloworld.git#egg=osam-yoloworld
pip install .[test]
- name: Lint
run: |
make lint
- name: Test
run: |
make test
- name: Install from dist
shell: bash
run: |
make build
pip install dist/osam*.tar.gz
pip install dist/osam*.whl