Skip to content

Commit

Permalink
Run pytest on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Nov 8, 2021
1 parent 55dd767 commit cefb919
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@ on: push
# - master

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install linting dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-dev.txt
- name: Install python package
run: python3 -m pip install . # Needed to guarantee dependencies are installed
- name: Lint with pylint
run: python3 -m pylint --rcfile=setup.cfg nhl/
# lint:
# name: Lint
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: [3.6, 3.7, 3.8, 3.9]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install linting dependencies
# run: |
# python3 -m pip install --upgrade pip
# python3 -m pip install -r requirements-dev.txt
# - name: Install python package
# run: python3 -m pip install . # Needed to guarantee dependencies are installed
# - name: Lint with pylint
# run: python3 -m pylint --rcfile=setup.cfg nhl/

test-coverage:
name: Coverage
needs: lint
# needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -54,7 +54,7 @@ jobs:

build-wheel:
name: Build Wheel
needs: lint
# needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit cefb919

Please sign in to comment.