From 3ead7faf19bddf5306e7874bf164cefe2cfb5d9f Mon Sep 17 00:00:00 2001 From: Mikhail Kniazev Date: Mon, 15 Jan 2024 14:03:10 +0700 Subject: [PATCH] Run CI/CD only on pull requests and pushes to master --- .github/workflows/main.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95d5a4d..b5c69c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,14 +1,15 @@ name: Lint and test on: + pull_request: + branches: ['master'] push: - branches: - - '*' - tags: - - '*' + branches: ['master'] + tags: [ '*' ] jobs: lint: + name: Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -30,6 +31,7 @@ jobs: run: make lint test: + name: Test strategy: matrix: python-version: ['3.10', '3.11']