Skip to content

Commit 051c0bb

Browse files
rudisimoRudy Puig
andauthored
chore: update workflow to trigger for pull-requests (#2)
Co-authored-by: Rudy Puig <[email protected]>
1 parent 1aaa45b commit 051c0bb

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
name: "Python Package"
1+
name: "Run Python Checks"
2+
23
on:
4+
pull_request:
5+
branches:
6+
- 'main'
37
push:
48
branches:
59
- main
@@ -10,28 +14,22 @@ jobs:
1014
strategy:
1115
matrix:
1216
python-version:
13-
- "3.7"
14-
- "3.8"
15-
- "3.9"
1617
- "3.10"
18+
- "3.11"
1719
steps:
18-
- uses: actions/checkout@v3
19-
20+
- uses: actions/checkout@v4
2021
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2223
with:
2324
python-version: ${{ matrix.python-version }}
24-
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install -e .[dev,test]
29-
28+
pip install .[dev,test]
3029
- name: Run linting
3130
run: |
3231
python -m flake8 -v --config .flake8 --black-config pyproject.toml --show-source
3332
continue-on-error: true
34-
35-
- name: Run tests
33+
- name: Run unit tests
3634
run: |
3735
python -m pytest -vvv --cov --cov-context=test --cov-report=xml

0 commit comments

Comments
 (0)