Skip to content

Commit 6a12bb0

Browse files
committed
Update unit test action to pyproject.toml and pytest format
1 parent 374efbb commit 6a12bb0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/python_testing.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,18 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
13+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
2222
run: |
23-
python -m pip install --upgrade pip
24-
python -m pip install nose
25-
pip install -r requirements.txt
26-
- name: Build package
27-
run: |
28-
python setup.py build
23+
python -m pip install .
24+
pip install pytest
2925
- name: Run unit tests
3026
run: |
31-
nosetests -v
27+
python -m pytest --pyargs dfols

0 commit comments

Comments
 (0)