From 47bbd1fd290eb23595cb8e99df36a08e47667441 Mon Sep 17 00:00:00 2001 From: Maxx Tessmer Date: Fri, 3 May 2024 12:06:24 -0700 Subject: [PATCH] Seperate PR tests and manual test workflows. --- .github/workflows/PR_test.yml | 9 ------- .github/workflows/commit_test.yml | 40 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/commit_test.yml diff --git a/.github/workflows/PR_test.yml b/.github/workflows/PR_test.yml index 25129f75..d30aba02 100755 --- a/.github/workflows/PR_test.yml +++ b/.github/workflows/PR_test.yml @@ -4,15 +4,6 @@ on: branches: - "**" - workflow_dispatch: - inputs: - myCommit: - description: 'Commit SHA1' - required: true - default: 'undefined' - type: string - - jobs: tests: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/commit_test.yml b/.github/workflows/commit_test.yml new file mode 100644 index 00000000..e63eced9 --- /dev/null +++ b/.github/workflows/commit_test.yml @@ -0,0 +1,40 @@ +name: Test specified commit +on: + workflow_dispatch: + inputs: + myCommit: + description: 'Commit SHA1' + required: true + default: 'undefined' + type: string + + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [3.11] + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ inputs.myCommit }} + + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + + - name: Test with pytest + run: | + cd tests + pytest