Skip to content

Commit e39ad7a

Browse files
committed
update github action and tox
1 parent 64e332b commit e39ad7a

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

.github/workflows/server.yml renamed to .github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,23 @@ jobs:
3030
with:
3131
mongodb-version: ${{ matrix.mongodb-version }}
3232
- name: Install Package
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install .
36+
- name: Install test dependencies
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install .[test]
40+
- name: Test with pytest
41+
run: |
42+
make test
43+
- name: Install development dependencies
3344
run: |
3445
python -m pip install --upgrade pip
3546
pip install .[dev]
3647
- name: Lint with flake8
3748
run: |
3849
make lint
39-
- name: Test with py.test (flask)
50+
- name: Test with pytest
4051
run: |
41-
make test-server
52+
make test

tox.ini

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@ python =
88

99

1010
[testenv]
11+
passenv = CI TRAVIS TRAVIS_*
1112
setenv =
1213
PYTHONPATH = {toxinidir}
13-
extras = dev
14+
extras = test
1415
commands =
15-
; /usr/bin/env make test
16-
; py.test -n 2 --basetemp={envtmpdir} ./tests
17-
/usr/bin/env py.test -n 2 --basetemp={envtmpdir} ./tests
16+
/usr/bin/env make test
1817

1918

2019
[testenv:lint]
21-
deps =
22-
flake8
23-
isort
20+
skipsdist = true
21+
extras = dev
2422
commands =
25-
; make lint
2623
/usr/bin/env make lint
27-

0 commit comments

Comments
 (0)