Skip to content

Commit 9a7c5ec

Browse files
unittests
1 parent 337ab50 commit 9a7c5ec

File tree

3 files changed

+114
-3
lines changed

3 files changed

+114
-3
lines changed

.github/workflows/unit-tests.yml

Lines changed: 112 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
test:
11-
name: Unittests
10+
test_python_3_7:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- name: GitHub Checkout
@@ -30,9 +29,120 @@ jobs:
3029
LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }}
3130
run: coverage run --source lucit_licensing_python unittest_lucit_licensing_python.py
3231

32+
test_python_3_8:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: GitHub Checkout
36+
uses: actions/checkout@v4
37+
38+
- name: Set up Python
39+
uses: actions/setup-python@v4
40+
with:
41+
python-version: 3.8
42+
43+
- name: Install dependencies
44+
run: |
45+
python -m pip install --upgrade pip
46+
pip install -r requirements.txt
47+
pip install coveralls
48+
- name: Run Unittest
49+
env:
50+
LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }}
51+
LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }}
52+
run: coverage run --source lucit_licensing_python unittest_lucit_licensing_python.py
53+
54+
test_python_3_9:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: GitHub Checkout
58+
uses: actions/checkout@v4
59+
60+
- name: Set up Python
61+
uses: actions/setup-python@v4
62+
with:
63+
python-version: 3.9
64+
65+
- name: Install dependencies
66+
run: |
67+
python -m pip install --upgrade pip
68+
pip install -r requirements.txt
69+
pip install coveralls
70+
- name: Run Unittest
71+
env:
72+
LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }}
73+
LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }}
74+
run: coverage run --source lucit_licensing_python unittest_lucit_licensing_python.py
75+
76+
test_python_3_10:
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: GitHub Checkout
80+
uses: actions/checkout@v4
81+
82+
- name: Set up Python
83+
uses: actions/setup-python@v4
84+
with:
85+
python-version: "3.10"
86+
87+
- name: Install dependencies
88+
run: |
89+
python -m pip install --upgrade pip
90+
pip install -r requirements.txt
91+
pip install coveralls
92+
- name: Run Unittest
93+
env:
94+
LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }}
95+
LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }}
96+
run: coverage run --source lucit_licensing_python unittest_lucit_licensing_python.py
97+
98+
test_python_3_11:
99+
runs-on: ubuntu-latest
100+
steps:
101+
- name: GitHub Checkout
102+
uses: actions/checkout@v4
103+
104+
- name: Set up Python
105+
uses: actions/setup-python@v4
106+
with:
107+
python-version: "3.11"
108+
109+
- name: Install dependencies
110+
run: |
111+
python -m pip install --upgrade pip
112+
pip install -r requirements.txt
113+
pip install coveralls
114+
- name: Run Unittest
115+
env:
116+
LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }}
117+
LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }}
118+
run: coverage run --source lucit_licensing_python unittest_lucit_licensing_python.py
119+
120+
test_python_3_12:
121+
runs-on: ubuntu-latest
122+
steps:
123+
- name: GitHub Checkout
124+
uses: actions/checkout@v4
125+
126+
- name: Set up Python
127+
uses: actions/setup-python@v4
128+
with:
129+
python-version: "3.12"
130+
131+
- name: Install dependencies
132+
run: |
133+
python -m pip install --upgrade pip
134+
pip install -r requirements.txt
135+
pip install coveralls
136+
- name: Run Unittest
137+
env:
138+
LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }}
139+
LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }}
140+
run: coverage run --source lucit_licensing_python unittest_lucit_licensing_python.py
141+
33142
- name: Upload coverage to Codecov
34143
uses: codecov/codecov-action@v3
35144
with:
145+
token: ${{ secrets.CODECOV_TOKEN }}
36146
flags: unittests
37147
name: codecov-umbrella
38148
verbose: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ build-backend = "setuptools.build_meta"
3636
lucitlicmgr = "lucit_licensing_python.cli:main"
3737

3838
[tool.poetry.package_data]
39-
lucit_licensing_python = ["*.so", "*.dll", "*.py"]
39+
lucit_licensing_python = ["*.so", "*.dll", "*.py", "*.pyd"]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
},
5757
python_requires='>=3.7.0',
5858
package_data={'': ['lucit_licensing_python/*.so',
59+
'lucit_licensing_python/*.pyd',
5960
'lucit_licensing_python/*.dll',
6061
'lucit_licensing_python/*.py']},
6162
entry_points={

0 commit comments

Comments
 (0)