Skip to content

Commit af5f3d8

Browse files
authored
adding pytest workflow (#79)
1 parent ee2c4d0 commit af5f3d8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Unit tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python 3.8
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: 3.8
21+
22+
- name: Install apt dependencies
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y libdb-dev
26+
27+
- name: Install pip dependencies
28+
run: |
29+
python -m pip install --upgrade pip wheel setuptools
30+
python setup.py install_egg_info
31+
pip install -e .
32+
33+
- name: Run tests
34+
run: |
35+
pytest -vv filetracker/tests

0 commit comments

Comments
 (0)