Compare commits
8 Commits
hemocube-q
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c0e740bd5 | ||
|
|
b966f6485a | ||
|
|
330745b57a | ||
|
|
b3526fa577 | ||
|
|
798e876b1b | ||
|
|
8c27f55ec6 | ||
|
|
4536b6906f | ||
|
|
827012c7fa |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
*.DS_Store
|
*.DS_Store
|
||||||
/env
|
/env
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
|
tests/__pycache__/test_class_demo.cpython-311-pytest-7.4.4.pyc
|
||||||
|
|||||||
33
.gitlab-ci.yml
Normal file
33
.gitlab-ci.yml
Normal 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
|
||||||
@@ -4,6 +4,10 @@
|
|||||||
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
### run project
|
||||||
|
|
||||||
|
npm start
|
||||||
|
|
||||||
### build
|
### build
|
||||||
|
|
||||||
npm run make
|
npm run make
|
||||||
4
electronjs/package-lock.json
generated
4
electronjs/package-lock.json
generated
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "hpos-destop",
|
"name": "hpos-qc-desktop",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "hpos-destop",
|
"name": "hpos-qc-desktop",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ PyQt5-sip==12.12.1
|
|||||||
PyQt6==6.5.1
|
PyQt6==6.5.1
|
||||||
PyQt6-Qt6==6.5.1
|
PyQt6-Qt6==6.5.1
|
||||||
PyQt6-sip==13.5.1
|
PyQt6-sip==13.5.1
|
||||||
|
pytest==7.4.4
|
||||||
pyserial==3.5
|
pyserial==3.5
|
||||||
python-dateutil==2.8.2
|
python-dateutil==2.8.2
|
||||||
python-slugify==8.0.1
|
python-slugify==8.0.1
|
||||||
|
|||||||
9
tests/test_class_demo.py
Normal file
9
tests/test_class_demo.py
Normal 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
|
||||||
Reference in New Issue
Block a user