Skip to content

Commit

Permalink
Use matrix for multiple py versions: python-app-py3.yml (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakiejj authored and StarWang committed Aug 22, 2020
1 parent d7f7bed commit 180433f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python 3.6 application
name: Python 3 application

on:
push:
Expand All @@ -11,24 +11,28 @@ on:

jobs:
build:

strategy:
matrix:
python-version: [3.6, 3.7]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python setup.py develop
- name: Lint with flake8
run: |
pip install flake8
python -m pip install --upgrade pip
pip install -U flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --ignore=E121,E123,E226,W292,E402 --max-line-length=160 --exclude=src/detext/model/bert/*.py --show-source --statistics
- name: Test with pytest
run: |
pip install pytest
pytest
34 changes: 0 additions & 34 deletions .github/workflows/python-app-py37.yml

This file was deleted.

0 comments on commit 180433f

Please sign in to comment.