Skip to content

Commit a215161

Browse files
authored
Merge pull request #367 from Adyen/improve-github-workflows
Improve GitHub workflows
2 parents 5eee536 + 95f475c commit a215161

File tree

2 files changed

+19
-54
lines changed

2 files changed

+19
-54
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 19 additions & 5 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-
816
runs-on: ubuntu-20.04
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)