Skip to content

Commit 39eec6f

Browse files
Enable piplelines
1 parent 5ceb82d commit 39eec6f

1 file changed

Lines changed: 42 additions & 42 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
name: Python CI
2-
3-
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
8-
9-
jobs:
10-
build:
11-
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- uses: actions/checkout@v2
16-
name: Checkout code
17-
18-
- name: Set up Python
19-
uses: actions/setup-python@v4
20-
with:
21-
python-version: '3.9'
22-
cache: 'pip'
23-
24-
- name: Cache Hugging Face datasets
25-
uses: actions/cache@v2
26-
with:
27-
path: ~/.cache/huggingface
28-
key: ${{ runner.os }}-huggingface-${{ hashFiles('**/lockfiles') }}
29-
restore-keys: |
30-
${{ runner.os }}-huggingface-
31-
32-
- name: Install dependencies
33-
run: |
34-
pip install -e . --extra-index-url https://download.pytorch.org/whl/cu118
35-
36-
- name: Check code formatting with black
37-
run: |
38-
black --check .
39-
40-
- name: Run unittests
41-
run: |
42-
python -m unittest discover -s src -p "*_test.py"
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
name: Checkout code
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.9'
22+
cache: 'pip'
23+
24+
- name: Cache Hugging Face datasets
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.cache/huggingface
28+
key: ${{ runner.os }}-huggingface-${{ hashFiles('**/lockfiles') }}
29+
restore-keys: |
30+
${{ runner.os }}-huggingface-
31+
32+
- name: Install dependencies
33+
run: |
34+
pip install -e . --extra-index-url https://download.pytorch.org/whl/cu118
35+
36+
- name: Check code formatting with black
37+
run: |
38+
black --check .
39+
40+
- name: Run unittests
41+
run: |
42+
python -m unittest discover -s src -p "*_test.py"

0 commit comments

Comments
 (0)