File tree Expand file tree Collapse file tree 2 files changed +18
-22
lines changed Expand file tree Collapse file tree 2 files changed +18
-22
lines changed Original file line number Diff line number Diff line change 25
25
- uses : actions/checkout@v2
26
26
- uses : actions/setup-python@v2
27
27
with :
28
- python-version : 3.8
28
+ python-version : " 3.8"
29
+ - uses : actions/setup-node@v2
30
+ with :
31
+ node-version : " 16"
29
32
30
33
- name : install build package
31
34
run : |
Original file line number Diff line number Diff line change 19
19
20
20
jobs :
21
21
test :
22
-
23
22
runs-on : ubuntu-20.04
24
23
timeout-minutes : 10
25
24
25
+ strategy :
26
+ fail-fast : false
27
+ matrix :
28
+ python-version : ["3.7", "3.8", "3.9", "3.10"]
29
+ node-version : ["16"]
30
+
26
31
steps :
27
32
- uses : actions/checkout@v2
33
+ - uses : actions/setup-python@v2
34
+ with :
35
+ python-version : " ${{ matrix.python-version }}"
36
+ - uses : actions/setup-node@v2
37
+ with :
38
+ node-version : " ${{ matrix.node-version }}"
28
39
29
40
- name : Run webpack to build static assets
30
41
run : |
31
42
npm install
32
43
npm run webpack
33
44
34
- - name : Install Python
35
- uses : actions/setup-python@v2
36
- with :
37
- python-version : ' 3.8'
38
-
39
- # DISABLED: Since we don't pin our dependencies in dev-requirements.txt
40
- # and only refresh the cache when it changes, we end up with a
41
- # cache that remains for too long and cause failures. Due to
42
- # this, it has been disabled.
43
- #
44
- # - name: Cache pip dependencies
45
- # uses: actions/cache@v2
46
- # with:
47
- # path: ~/.cache/pip
48
- # # Look to see if there is a cache hit for the corresponding requirements file
49
- # key: ${{ runner.os }}-pip-${{ hashFiles('*requirements.txt') }}
50
- # restore-keys: |
51
- # ${{ runner.os }}-pip-
52
-
53
45
- name : Install dependencies
54
46
run : |
55
47
pip install -r dev-requirements.txt
48
+ pip install .
49
+ pip freeze
56
50
57
51
- name : Run flake8 linter
58
52
run : flake8
59
53
60
54
- name : Run tests
61
55
run : |
62
- pip install .
63
56
pytest --verbose --maxfail=2 --color=yes --cov nbgitpuller
You can’t perform that action at this time.
0 commit comments