Skip to content

Commit

Permalink
Trying to lint during pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
rudexi committed Sep 26, 2021
1 parent 20a1d98 commit d8163c8
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,37 @@ on:
branches: [ master ]

jobs:
tests:

lint:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.6'
architecture: 'x64'

- name: Install Pipenv
run: python -m pip install pipenv wheel

- name: Cache Pipenv
uses: actions/cache@v1
with:
path: ~/.local/share/virtualenvs
key: "{{ runner.os }}-pipenv-{{ hashFIles('**/Pipfile.lock') }}"

- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'

run: pipenv install --deploy --dev
- name: Running Pylint
run: pipenv run pylint

tests:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
Expand All @@ -19,8 +47,7 @@ jobs:
architecture: 'x64'

- name: Install Pipenv
run: |
python -m pip install pipenv wheel
run: python -m pip install pipenv wheel

- name: Cache Pipenv
uses: actions/cache@v1
Expand All @@ -30,9 +57,8 @@ jobs:

- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pipenv install --deploy --dev
run: pipenv install --deploy --dev

- name: Running Pytest
run: |
pipenv run pytest
run: pipenv run pytest

0 comments on commit d8163c8

Please sign in to comment.