-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (42 loc) · 1.35 KB
/
main.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
name: CI
on: [pull_request, workflow_dispatch]
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Install Poetry
run: pip3 install poetry --user
- name: Install Dependencies
run: poetry install
# Prints the help pages of all scripts to see if the imports etc. work
- name: Test the help pages
run: |
poetry run yoeo-train -h
poetry run yoeo-test -h
poetry run yoeo-detect -h
- name: Demo Training
run: poetry run yoeo-train --data config/custom.data --epochs 30
- name: Demo Evaluate
run: poetry run yoeo-test --data config/custom.data --weights checkpoints/yoeo_checkpoint_29.pth
- name: Demo Detect
run: poetry run yoeo-detect --batch_size 2 --weights checkpoints/yoeo_checkpoint_29.pth
linter:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Flake8
uses: TrueBrain/actions-flake8@master
with:
only_warn: 1
max_line_length: 150
path: yoeo