From 3ce0ab29d33b2455fd4b57cff976f5bcda7b3dc9 Mon Sep 17 00:00:00 2001 From: Razze Date: Sat, 7 Aug 2021 23:52:37 +0200 Subject: [PATCH] Add test config --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..5f4d933f --- /dev/null +++ b/.github/workflows/test.yml @@ -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