-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 1.55 KB
/
python.yaml
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
name: python-lint-and-test
on: [ push ]
jobs:
python-check:
strategy:
fail-fast: false
matrix:
python-version: [ 3.11 ]
os:
- ubuntu-latest
# - macos-latest # at the moment bitsandbytes installation fails on macOS
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: Install deps
run: make install_cpu
- name: Lint
run: make check
python-test:
needs:
- python-check
strategy:
fail-fast: false
matrix:
python-version: [ 3.11 ]
os:
- ubuntu-latest
# - macos-latest # at the moment bitsandbytes installation fails on macOS
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: Install deps
run: make install_cpu
- name: Test
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
run: make test