From 6a12bb0010f6b4d260e048b113c7eafc238f74ae Mon Sep 17 00:00:00 2001 From: Lindon Roberts Date: Thu, 11 Apr 2024 16:59:47 +1000 Subject: [PATCH] Update unit test action to pyproject.toml and pytest format --- .github/workflows/python_testing.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python_testing.yml b/.github/workflows/python_testing.yml index 7a29df3..c67ea05 100644 --- a/.github/workflows/python_testing.yml +++ b/.github/workflows/python_testing.yml @@ -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 \ No newline at end of file + python -m pytest --pyargs dfols \ No newline at end of file