mirror of
https://github.com/GothenburgBitFactory/task-timewarrior-hook.git
synced 2025-06-26 10:54:27 +02:00
Add unit tests
This commit is contained in:
parent
056d239f35
commit
487dfed981
2 changed files with 387 additions and 0 deletions
18
.github/workflows/tests.yaml
vendored
Normal file
18
.github/workflows/tests.yaml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: tests
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Test
|
||||
run: |
|
||||
export PYTHONPATH=.
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install --upgrade pip
|
||||
venv/bin/pip install pytest mockito
|
||||
venv/bin/pytest test/test_on-modify_unit.py
|
Loading…
Add table
Add a link
Reference in a new issue