Skip to content

Commit 963e90d

Browse files
[PSDK-529] GHA for Unit Tests on PR (#3)
1 parent 3b5b3e9 commit 963e90d

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
File renamed without changes.

.github/workflows/unit_tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run Unit Tests
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python: ['3.10', '3.11', '3.12']
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python }}
19+
20+
- name: Install Dependencies
21+
run: |
22+
pip install --upgrade pip
23+
pip install .[dev]
24+
25+
- name: Run Unit Tests
26+
run: make test

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ dependencies = [
6868
dev = [
6969
"astroid==3.2.4",
7070
"autopep8==1.5.5",
71+
"coverage==7.6.1",
7172
"isort==5.13.2",
7273
"mccabe==0.6.1",
7374
"mypy==1.11.2",
@@ -77,6 +78,7 @@ dev = [
7778
"pyflakes==2.2.0",
7879
"pylint==3.2.7",
7980
"pytest==8.3.3",
81+
"pytest-cov==5.0.0",
8082
"ruff==0.6.5",
8183
"types-requests==2.32.0.20240914",
8284
"yapf==0.40.2",

0 commit comments

Comments
 (0)