Skip to content

Commit 8f1d8c4

Browse files
authored
Merge pull request #24 from amolkahat/add_nox
Added nox support. Fixes #10
2 parents e84e2c7 + 7995f0e commit 8f1d8c4

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ jobs:
4343
python-version: ${{ matrix.python-version }}
4444
architecture: x64
4545

46-
- name: Setup Package and Install Devel Dependancies
47-
run: |
48-
python -m pip install .
49-
python -m pip install -Ur dev-requirements.txt
46+
- name: Install nox
47+
run: python -m pip install nox
5048

51-
- name: Unit Tests
52-
run: py.test tests -v
49+
- name: Run nox
50+
run: nox

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ coverage.xml
4646
*.cover
4747
.hypothesis/
4848
.pytest_cache/
49+
.nox
4950

5051
# Translations
5152
*.mo
@@ -102,3 +103,4 @@ venv.bak/
102103

103104
# mypy
104105
.mypy_cache/
106+
.idea/

noxfile.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import nox
2+
3+
4+
@nox.session
5+
def run_tests(session):
6+
session.install("-r", "dev-requirements.txt")
7+
session.install("-e", ".")
8+
session.run("pytest", "tests")

0 commit comments

Comments
 (0)