Skip to content

Commit 264340a

Browse files
committed
Add dummy tests
1 parent 1d3015f commit 264340a

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

.github/.gitinclude

Whitespace-only changes.

.github/workflows/api.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: API workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
name: Test python API
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v2
12+
with:
13+
python-version: '3.12'
14+
- name: Install requirements
15+
run: pip install -r requirements.txt
16+
- name: Run tests and collect coverage
17+
run: pytest --cov=app --cov-report=xml
18+
- name: Upload coverage reports to Codecov with GitHub Action
19+
uses: codecov/codecov-action@v5
20+
env:
21+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests/__init__.py

Whitespace-only changes.

tests/test_simple.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
TD
3+
"""
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
def test_simple():
15+
"""
16+
TD
17+
"""
18+
assert True

0 commit comments

Comments
 (0)