Skip to content

Commit

Permalink
updated github actions config to run tests on multiple versions of py…
Browse files Browse the repository at this point in the history
…thon
  • Loading branch information
Iulian Masar committed Feb 12, 2025
1 parent 4024d24 commit 515ec0c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,35 @@ name: mangopay2-python-sdk-ci
on:
push:
branches:
# push on master branch
- master
pull_request:
branches: [ master ]


jobs:
build:

name: Test on python ${{ matrix.python-version }}
runs-on: ubuntu-20.04

strategy:
matrix:
python-version: [ "3.6", "3.8" ]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/base.txt
pip install -r requirements/development.txt
- name: Run tests
run: |
python -m unittest discover

0 comments on commit 515ec0c

Please sign in to comment.