Skip to content

Merge pull request #10 from SpEcHiDe/patch-1 #108

Merge pull request #10 from SpEcHiDe/patch-1

Merge pull request #10 from SpEcHiDe/patch-1 #108

Workflow file for this run

name: Python Test
on: [push, pull_request_target]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Grant write permissions to test directory
run: |
mkdir db
chmod -R +w ./db
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
python -m pip install coverage
- name: Run unit tests
run: |
coverage run -m unittest discover -s ./test/
coverage xml
- name: Upload coverage reports to Codacy
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml