Skip to content

Commit 180433f

Browse files
jakiejjStarWang
authored andcommitted
Use matrix for multiple py versions: python-app-py3.yml (#1)
1 parent d7f7bed commit 180433f

2 files changed

Lines changed: 9 additions & 39 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python 3.6 application
4+
name: Python 3 application
55

66
on:
77
push:
@@ -11,24 +11,28 @@ on:
1111

1212
jobs:
1313
build:
14-
14+
strategy:
15+
matrix:
16+
python-version: [3.6, 3.7]
1517
runs-on: ubuntu-latest
1618

1719
steps:
1820
- uses: actions/checkout@v2
19-
- name: Set up Python 3.6
21+
- name: Set up Python ${{ matrix.python-version }}
2022
uses: actions/setup-python@v1
2123
with:
22-
python-version: 3.6
24+
python-version: ${{ matrix.python-version }}
2325
- name: Install dependencies
2426
run: |
2527
python setup.py develop
2628
- name: Lint with flake8
2729
run: |
28-
pip install flake8
30+
python -m pip install --upgrade pip
31+
pip install -U flake8
2932
# stop the build if there are Python syntax errors or undefined names
3033
flake8 . --count --ignore=E121,E123,E226,W292,E402 --max-line-length=160 --exclude=src/detext/model/bert/*.py --show-source --statistics
3134
- name: Test with pytest
3235
run: |
3336
pip install pytest
3437
pytest
38+

.github/workflows/python-app-py37.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)