Skip to content

Commit 2ce7bb6

Browse files
committed
fixes(ci) improve workflow trigger
1 parent ebb5177 commit 2ce7bb6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Python package
22

3-
on: [push, pull_request]
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
49

510
jobs:
611
build:
7-
812
runs-on: ubuntu-latest
913
strategy:
1014
max-parallel: 1
@@ -13,16 +17,20 @@ jobs:
1317

1418
steps:
1519
- uses: actions/checkout@v4
20+
1621
- name: Set up Python ${{ matrix.python-version }}
1722
uses: actions/setup-python@v5
1823
with:
1924
python-version: ${{ matrix.python-version }}
25+
2026
- name: Install dependencies
2127
run: |
2228
python -m pip install --upgrade pip
2329
pip install -r requirements.txt
2430
pip install -r dev-requirements.txt
31+
2532
- name: Launch tests
2633
run: python setup.py test
34+
2735
- name: Launch Linting
2836
run: flake8 --show-source --statistics

0 commit comments

Comments
 (0)