Skip to content

Commit

Permalink
Merge pull request #11 from moritzkoerber/add_pytest_workflow
Browse files Browse the repository at this point in the history
Add pytest workflow
  • Loading branch information
Moritz Körber authored Jul 17, 2021
2 parents a96f187 + 2867d0e commit 6adf3b8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,26 @@ jobs:
- name: Run pre-commit
run: |
pipenv run pre-commit run --all-files
tests:
name: Tests
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
needs: linting
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install environment
run: |
pip install pipenv
pipenv install --dev --deploy
- name: Run pytest
run: |
pipenv run pytest

0 comments on commit 6adf3b8

Please sign in to comment.