diff --git a/.github/workflows/env_test.yml b/.github/workflows/env_test.yml index 9f30489..f2109c4 100644 --- a/.github/workflows/env_test.yml +++ b/.github/workflows/env_test.yml @@ -1,15 +1,18 @@ -name: Environment Test +name: pytest -on: - push: - paths: - - poetry.lock - - pyproject.toml - workflow_dispatch: +on: + workflow_run: + workflows: ["Dependabot PR Check"] + types: + - completed + push: + paths: + - poetry.lock + - pyproject.toml jobs: build: - # continue-on-error: true + if: ${{ github.event.workflow_run.conclusion == 'success' || github.actor != 'dependabot[bot]' }} strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] diff --git a/.github/workflows/env_test_bot.yml b/.github/workflows/env_test_bot.yml new file mode 100644 index 0000000..ea931ad --- /dev/null +++ b/.github/workflows/env_test_bot.yml @@ -0,0 +1,10 @@ +name: Dependabot PR Check + +on: pull_request_target + +jobs: + check-dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - run: echo "PR created by Dependabot" \ No newline at end of file