Skip to content

Commit

Permalink
tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Nov 20, 2022
1 parent ed8d2b2 commit 86bd9a2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: run-tests
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: Run tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
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 dependencies
run: |
python -m pip install --upgrade pip
pip install -U --upgrade-strategy=eager --pre -e .[testing]
pip install pytest-cov
- name: Run Tests
run: |
pytest --cov=linetable
- name: Publish to coveralls.io
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install 'coveralls'
coveralls --service=github

0 comments on commit 86bd9a2

Please sign in to comment.