File tree Expand file tree Collapse file tree 2 files changed +50
-34
lines changed
Expand file tree Collapse file tree 2 files changed +50
-34
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44# For more information see:
55# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
66
7- name : Python package
7+ name : Tests
88
99on :
10- push :
11- branches :
12- - master
1310 pull_request :
1411 branches :
15- - master
12+ - ' master'
13+ push :
14+ branches :
15+ - ' **'
16+ tags-ignore :
17+ - ' **'
18+
1619
1720jobs :
18- build :
1921
22+ pre-commit :
2023 runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v3
27+ - name : Set up Python
28+ uses : actions/setup-python@v4
29+ with :
30+ python-version : ' 3.x'
31+ - name : Run pre-commit
32+ uses : pre-commit/action@v2.0.3
33+
34+ build :
35+ runs-on : ubuntu-latest
36+ steps :
37+ - name : Checkout
38+ uses : actions/checkout@v3
39+ - name : Set up Python
40+ uses : actions/setup-python@v4
41+ with :
42+ python-version : ' 3.x'
43+ cache : pip
44+ - run : |
45+ pip install setuptools wheel
46+ - run : |
47+ python setup.py sdist bdist_wheel
48+
49+ pytest :
50+ runs-on : ${{ matrix.os }}
2151 strategy :
2252 matrix :
53+ os :
54+ - ubuntu-latest
55+ - windows-latest
2356 python-version :
24- - " 3.6"
25- - " 3.7"
26- - " 3.8"
27- - " 3.9"
28- - " 3.10"
29-
57+ - ' 3.6'
58+ - ' 3.7'
59+ - ' 3.8'
60+ - ' 3.9'
61+ - ' 3.10'
3062 steps :
31- - uses : actions/checkout@v2
63+ - name : Checkout
64+ uses : actions/checkout@v3
3265 - name : Set up Python ${{ matrix.python-version }}
33- uses : actions/setup-python@v2
66+ uses : actions/setup-python@v4
3467 with :
3568 python-version : ${{ matrix.python-version }}
69+ cache : pip
3670 - name : Install dependencies
3771 run : |
38- python -m pip install --upgrade pip
39- python -m pip install -r requirements.txt
72+ pip install -r requirements.txt
73+ pip install -e .
4074 - name : Test with pytest
4175 run : |
4276 pytest
You can’t perform that action at this time.
0 commit comments