Skip to content

Commit

Permalink
Merge pull request #566 from trakt/Razzeee-patch-1
Browse files Browse the repository at this point in the history
Add test config
  • Loading branch information
razzeee committed Aug 7, 2021
2 parents 8639df0 + 3ce0ab2 commit 3cc8cfc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on:
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-dateutil pytest mock pytest-cov coverage coveragepy-lcov
- name: Run Test
run: |
py.test --cov coveralls --cov-report term-missing --cov=resources tests/
- name: Covert to lcov
run: |
coveragepy-lcov
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info

0 comments on commit 3cc8cfc

Please sign in to comment.