Skip to content

Commit 0d300dd

Browse files
committed
Improve main CI workflow
1 parent 5eee536 commit 0d300dd

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,40 @@
1-
name: Python package
1+
name: Python CI
22

3-
on: [workflow_call, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
workflow_dispatch: {}
413

514
jobs:
615
build:
7-
8-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-latest
917
strategy:
1018
matrix:
11-
python-version: ['3.6','3.7', '3.8']
19+
python-version: ['3.6', '3.7', '3.8']
1220

1321
steps:
14-
- uses: actions/checkout@v4
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
1527
- name: Set up Python ${{ matrix.python-version }}
1628
uses: actions/setup-python@v5
1729
with:
1830
python-version: ${{ matrix.python-version }}
31+
1932
- name: Install dependencies
2033
run: |
2134
python -m pip install --upgrade pip
2235
pip install tox
2336
sudo apt-get update
2437
sudo apt install libcurl4-openssl-dev
38+
2539
- name: Test with tox
2640
run: tox

0 commit comments

Comments
 (0)