Skip to content

Commit

Permalink
Update unit test action to pyproject.toml and pytest format
Browse files Browse the repository at this point in the history
  • Loading branch information
lindonroberts committed Apr 11, 2024
1 parent 374efbb commit 6a12bb0
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/python_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install nose
pip install -r requirements.txt
- name: Build package
run: |
python setup.py build
python -m pip install .
pip install pytest
- name: Run unit tests
run: |
nosetests -v
python -m pytest --pyargs dfols

0 comments on commit 6a12bb0

Please sign in to comment.