From e513b4ed6dae562cd22b6cc4251ec43c1f0d99d5 Mon Sep 17 00:00:00 2001 From: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:59:32 -0400 Subject: [PATCH] Update run-tests.yml try other conditional --- .github/workflows/run-tests.yml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 03cb17e..12dcd9a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -7,30 +7,25 @@ on: jobs: run-tests: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.7", "3.12"] - include: - - if: github.event.pull_request - python-version: | - - 3.8 - - 3.9 - - 3.10 - - 3.11 steps: - name: Checkout repository uses: actions/checkout@v4 - - - name: Set up Python ${{ matrix.python-version }} + - name: PR test ${{ python-version }} + if: github.event.pull_request uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: | + - ["3.8", "3.9", "3.10", "3.11"] - - name: install dependencies - run: pip install .[dev] - shell: bash - + - name: test ${{ python-version }} + uses: actions/setup-python@v5 + with: + python-version: | + - ["3.7", "3.12"] + - name: run tests - run: pytest + run: | + pip install .[dev] + pytest shell: bash