From 817478aa4c96242cc2d6c5432aedcf8f07395f99 Mon Sep 17 00:00:00 2001 From: Wyatt Stanke Date: Tue, 20 Feb 2024 19:56:41 -0500 Subject: [PATCH] Swap action --- .github/workflows/test.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2af695db..a5ec6322 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -85,19 +85,32 @@ jobs: name: Python ${{ matrix.python-version }} ${{ matrix.test_type }} steps: - uses: actions/checkout@v4 + # - name: Set up Python ${{ matrix.python-version }} + # uses: "./.github/actions/poetry_setup" + # with: + # python-version: ${{ matrix.python-version }} + # poetry-version: "1.4.2" + # cache-key: ${{ matrix.test_type }} + # install-command: | + # if [ "${{ matrix.test_type }}" == "core" ]; then + # echo "Running core tests, installing dependencies with poetry..." + # poetry install + # else + # echo "Running extended tests, installing dependencies with poetry..." + # poetry install -E extended_testing + # fi - name: Set up Python ${{ matrix.python-version }} - uses: "./.github/actions/poetry_setup" + uses: "snok/install-poetry@v1" with: python-version: ${{ matrix.python-version }} poetry-version: "1.4.2" cache-key: ${{ matrix.test_type }} - install-command: | - if [ "${{ matrix.test_type }}" == "core" ]; then - echo "Running core tests, installing dependencies with poetry..." - poetry install + install-command: if [ "${{ matrix.test_type }}" == "core" ]; then + echo "Running core tests, installing dependencies with poetry..." + poetry install else - echo "Running extended tests, installing dependencies with poetry..." - poetry install -E extended_testing + echo "Running extended tests, installing dependencies with poetry..." + poetry install -E extended_testing fi - name: Run ${{matrix.test_type}} tests run: |