Skip to content

Commit 2ffe5d6

Browse files
authored
Modify testing to run tox (#53)
1 parent 1c59d94 commit 2ffe5d6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/python-ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171

7272
- uses: actions/setup-python@v5
7373
with:
74-
python-version: 3.9
74+
python-version: 3.11
7575

7676
- name: Install dependencies and build
7777
run: |
@@ -80,5 +80,5 @@ jobs:
8080
8181
- name: Check Build
8282
run: |
83-
cd ./dist
84-
pytest ../
83+
pip install tox tox-gh-actions coverage
84+
tox

.github/workflows/python-package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
python -m build
3434
- name: Test with pytest
3535
run: |
36-
cd ./dist
37-
pytest ../
36+
pip install tox tox-gh-actions coverage
37+
tox
3838
- uses: actions/upload-artifact@v4
3939
with:
4040
name: EasyScience - Python ${{ matrix.python-version }}

Examples/base/plot_baseclass1.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import matplotlib.pyplot as plt
1818
import numpy as np
19+
1920
from easyscience.Objects.ObjectClasses import BaseObj
2021
from easyscience.Objects.ObjectClasses import Parameter
2122

0 commit comments

Comments
 (0)