forked from determined-ai/determined
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (60 loc) · 1.73 KB
/
lint-python.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
---
name: "Lint python"
on: # yamllint disable-line rule:truthy
pull_request:
paths-ignore:
- '*.md'
- 'docs/*'
- 'webui/*'
push:
branches:
- 'main'
- 'releases/**'
jobs:
lint-python:
strategy:
fail-fast: true
matrix:
component:
- e2e_tests
- examples
- harness
- model_hub
- schemas
- tools
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set VERSION env var
shell: bash
run: echo "VERSION=$(< ./VERSION )" >> $GITHUB_ENV
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8.16
cache: pip
cache-dependency-path: |
harness/setup.py
model_hub/setup.py
requirements.txt
- name: Install pip dependencies
run: |
python --version
python -m pip install --upgrade pip wheel setuptools
pip --version
pip install -r requirements.txt
- name: Install harness
working-directory: harness
run: |
make build
pip install --find-links dist determined==${{ env.VERSION }}
pip install --no-deps --force-reinstall --find-links dist determined==${{ env.VERSION }}
- name: Install model_hub
working-directory: model_hub
run: |
sudo apt-get update && sudo apt-get install -y ffmpeg libsm6 libxext6
make build
pip install --find-links dist model-hub==${{ env.VERSION }}
pip install --no-deps --force-reinstall --find-links dist model-hub==${{ env.VERSION }}
- name: Run checks
run: make -C ${{ matrix.component }} check