Compare commits

8 Commits

Author SHA1 Message Date
prisar
7c0e740bd5 add test 2024-01-21 16:31:03 +05:30
prisar
b966f6485a change numba version 2024-01-21 16:26:40 +05:30
prisar
330745b57a change ci image 2024-01-21 16:23:17 +05:30
prisar
b3526fa577 bump numba 2024-01-21 16:16:53 +05:30
Pritimay Sarkar
798e876b1b add pytest 2024-01-21 10:20:55 +00:00
Pritimay Sarkar
8c27f55ec6 change ci step 2024-01-21 10:12:20 +00:00
Pritimay Sarkar
4536b6906f Update .gitlab-ci.yml file 2024-01-11 05:41:06 +00:00
Pritimay Sarkar
827012c7fa Merge branch 'hemocube-qc' into 'main'
merge pyqt

See merge request sminnovations/hpos-qc-desk!1
2023-08-08 05:15:18 +00:00
6 changed files with 51 additions and 3 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,5 @@
*.DS_Store
/env
build
dist
dist
tests/__pycache__/test_class_demo.cpython-311-pytest-7.4.4.pyc

33
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,33 @@
# This file is a template, and might need editing before it works on your project.
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:3.11
stages:
- test
variables:
PYTHON_VERSION: "3.11" # Explicitly set the Python version variable
# Cache pip packages for faster builds
cache:
paths:
- .cache/pip
before_script:
- python --version ; pip --version # Verify Python and pip versions
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install setuptools
- pip install -r requirements.txt
test:
stage: test
script:
- pytest

View File

@@ -4,6 +4,10 @@
npm install
### run project
npm start
### build
npm run make

View File

@@ -1,11 +1,11 @@
{
"name": "hpos-destop",
"name": "hpos-qc-desktop",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "hpos-destop",
"name": "hpos-qc-desktop",
"version": "1.0.0",
"license": "MIT",
"dependencies": {

View File

@@ -35,6 +35,7 @@ PyQt5-sip==12.12.1
PyQt6==6.5.1
PyQt6-Qt6==6.5.1
PyQt6-sip==13.5.1
pytest==7.4.4
pyserial==3.5
python-dateutil==2.8.2
python-slugify==8.0.1

9
tests/test_class_demo.py Normal file
View File

@@ -0,0 +1,9 @@
class TestClassDemoInstance:
value = 0
def test_one(self):
self.value = 1
assert self.value == 1
def test_two(self):
assert self.value != 1