From f387c9cfb309ae3b125a9017a988d33c40f23b01 Mon Sep 17 00:00:00 2001 From: Robert Farmer Date: Thu, 21 Mar 2024 20:09:24 +0000 Subject: [PATCH] Update test scripts --- .github/workflows/test.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5352d96..155990f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,21 +6,26 @@ on: jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-22.04 strategy: matrix: - os: [ubuntu-latest] - python-version: ['3.7', '3.8', '3.9', '3.10','3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10','3.11','3.12'] steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox tox-gh-actions - - name: Test with tox - run: tox \ No newline at end of file + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install build wheel pytest + + - name: Build + run: python -m pip install . + + - name: Test + run: python -m pytest -v \ No newline at end of file