Skip to content

Commit fdd54bd

Browse files
authored
Merge pull request #245 from consideRatio/pr/test-against-multiple-versions
ci: test against python 3.7-3.10
2 parents 99e53ed + 7e2c0e8 commit fdd54bd

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
- uses: actions/checkout@v2
2626
- uses: actions/setup-python@v2
2727
with:
28-
python-version: 3.8
28+
python-version: "3.8"
29+
- uses: actions/setup-node@v2
30+
with:
31+
node-version: "16"
2932

3033
- name: install build package
3134
run: |

.github/workflows/test.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,38 @@ on:
1919

2020
jobs:
2121
test:
22-
2322
runs-on: ubuntu-20.04
2423
timeout-minutes: 10
2524

25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
python-version: ["3.7", "3.8", "3.9", "3.10"]
29+
node-version: ["16"]
30+
2631
steps:
2732
- 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 }}"
2839

2940
- name: Run webpack to build static assets
3041
run: |
3142
npm install
3243
npm run webpack
3344
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-
5345
- name: Install dependencies
5446
run: |
5547
pip install -r dev-requirements.txt
48+
pip install .
49+
pip freeze
5650
5751
- name: Run flake8 linter
5852
run: flake8
5953

6054
- name: Run tests
6155
run: |
62-
pip install .
6356
pytest --verbose --maxfail=2 --color=yes --cov nbgitpuller

0 commit comments

Comments
 (0)