forked from wolph/python-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 999 Bytes
/
Copy pathtests.yml
File metadata and controls
44 lines (36 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Python Tests
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install pytest pytest-asyncio pytest-cov loguru
- name: Show test files
run: |
echo "Listing contents of tests directory:"
ls -lR tests
- name: Run tests directly
run: |
source venv/bin/activate
PYTHONPATH=$(pwd) pytest tests/test_utils.py -v \
--cov=python_utils \
--cov-report=term-missing \
--cov-fail-under=0