Skip to content

Commit

Permalink
Run CI/CD only on pull requests and pushes to master
Browse files Browse the repository at this point in the history
  • Loading branch information
9dogs committed Jan 15, 2024
1 parent 7f0fc9b commit 3ead7fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -30,6 +31,7 @@ jobs:
run: make lint

test:
name: Test
strategy:
matrix:
python-version: ['3.10', '3.11']
Expand Down

0 comments on commit 3ead7fa

Please sign in to comment.