|
@@ -5,21 +5,24 @@ name: Python application
|
|
|
|
|
|
on:
|
|
on:
|
|
push:
|
|
push:
|
|
- branches: [ master ]
|
|
|
|
pull_request:
|
|
pull_request:
|
|
- branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
- build:
|
|
|
|
-
|
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
|
+ test:
|
|
|
|
+ name: Test on ${{ matrix.os }}
|
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
|
+
|
|
|
|
+ strategy:
|
|
|
|
+ matrix:
|
|
|
|
+ python: [2.7, 3.5, 3.6, 3.7, 3.8]
|
|
|
|
+ os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
- - name: Set up Python 3.8
|
|
|
|
|
|
+ - name: Set up Python ${{ matrix.python }}
|
|
uses: actions/setup-python@v2
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
with:
|
|
- python-version: 3.8
|
|
|
|
|
|
+ python-version: ${{ matrix.python }}
|
|
- name: Install dependencies
|
|
- name: Install dependencies
|
|
run: |
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install --upgrade pip
|