This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
67 lines (60 loc) · 1.62 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on: [push]
env:
HOST: ${{ secrets.FINETUNER_HOST }}
JINA_AUTH_TOKEN: ${{ secrets.JINA_AUTH_TOKEN }}
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HF_HUB_ACCESS_TOKEN }}
jobs:
check-codestyle:
name: Check codestyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install requirements
run: make init
- name: Lint with flake8, black and isort
run: make style
run-tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install requirements
run: make init
- name: Run tests
run: make test
check-versions:
name: Check Python Versions
runs-on: ubuntu-latest
strategy:
matrix:
version: [3.8, 3.9, '3.10']
steps:
- uses: actions/checkout@v2
- name: Setp up python version
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.version }}
- name: Test install
run: make install
# just for blocking the merge until all parallel core-test are successful
success-all-test:
needs: run-tests
if: always()
runs-on: ubuntu-latest
steps:
- uses: technote-space/workflow-conclusion-action@v2
- name: Check Failure
if: env.WORKFLOW_CONCLUSION == 'failure'
run: exit 1
- name: Success
if: ${{ success() }}
run: echo "All Done"