From 96db7762ea09fc696a041308c975d071cf77a580 Mon Sep 17 00:00:00 2001 From: Taylor Isbell Date: Wed, 24 Apr 2024 15:17:12 -0500 Subject: [PATCH] testing new push action --- .github/workflows/{test.yml => push.yml} | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) rename .github/workflows/{test.yml => push.yml} (93%) diff --git a/.github/workflows/test.yml b/.github/workflows/push.yml similarity index 93% rename from .github/workflows/test.yml rename to .github/workflows/push.yml index 54ac2aa6..dff677bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/push.yml @@ -4,12 +4,15 @@ on: pull_request: types: [opened, synchronize] push: - branches: ['master'] - workflow_dispatch: + branches: ['*'] + workflow_dispatch: + +env: + OS: ubuntu-latest jobs: lint-and-check: - runs-on: ubuntu-latest + runs-on: ${{ env.OS }} steps: - uses: actions/checkout@v4 with: @@ -31,7 +34,7 @@ jobs: run: tox -e type-check analyze: - runs-on: ubuntu-latest + runs-on: "${{ env.OS }}" permissions: actions: read contents: read @@ -71,7 +74,7 @@ jobs: test: needs: lint-and-check - runs-on: ubuntu-latest + runs-on: "${{ env.OS }}" strategy: matrix: python-version: ['3.8', '3.9', '3.10'] @@ -92,7 +95,7 @@ jobs: working-directory: ./python run: tox - name: Publish test coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true files: ./python/coverage.xml \ No newline at end of file