Skip to content

Commit

Permalink
Add Github action for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmabus committed Mar 25, 2022
1 parent 2c72177 commit b7aa90e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests

on:
push:
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9']

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip3 install codecov pytest-cov || pip3 install --user codecov pytest-cov;
- name: Run tests
run: |
pip3 install .
coverage run --source=dcor/ --omit=dcor/tests/ setup.py test;
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

0 comments on commit b7aa90e

Please sign in to comment.