Skip to content

Commit

Permalink
add pytest action with single python version for pull-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Oct 9, 2023
1 parent 1b30ce7 commit 4634cab
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pytest_coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will install Python dependencies, run tests for a single versions of Python and commit test results to coveralls
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: pytest

on: pull_request

jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
git lfs pull
python -m pip install --upgrade pip
python -m pip install pytest coverage coveralls
- name: Install package
run: |
python -m pip install .
- name: Test with pytest
run: |
coverage run -m pytest -sv --show-capture=no tests
- name: Submit to coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github
File renamed without changes.

0 comments on commit 4634cab

Please sign in to comment.