-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (39 loc) · 1.09 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
name: CI
on: [push, pull_request]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
- uses: actions/[email protected]
- run: python -m pip install --upgrade black
- run: black --check .
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
- uses: actions/[email protected]
- run: python -m pip install flake8
- run: flake8
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/[email protected]
- run: python -m pip install cryptography isort==5.6.4
- run: isort --diff --check lora tests
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", 3.11]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/[email protected]
- run: python -m pip install discover cryptography==3.2
- run: discover