-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
variables: | ||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" | ||
|
||
cache: | ||
paths: | ||
- .cache/pip | ||
|
||
|
||
stages: | ||
- test | ||
- deploy | ||
|
||
|
||
.base: | ||
image: python:3.11 | ||
before_script: | ||
- pip install -U virtualenv | ||
- virtualenv venv | ||
- source venv/bin/activate | ||
- echo "machine git-ce.rwth-aachen.de" > ~/.netrc | ||
- echo "login gitlab-ci-token" >> ~/.netrc | ||
- echo "password ${CI_JOB_TOKEN}" >> ~/.netrc | ||
|
||
|
||
.tox: | ||
extends: | ||
- .base | ||
before_script: | ||
- !reference [.base, before_script] | ||
- pip install tox | ||
|
||
|
||
.test: | ||
extends: | ||
- .tox | ||
stage: test | ||
before_script: | ||
- apt-get update && apt-get install -y xvfb libegl1 libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 x11-utils libxcb-cursor0 | ||
- !reference [.tox, before_script] | ||
coverage: /^TOTAL.+?(\d+%)$/ | ||
artifacts: | ||
when: always | ||
reports: | ||
junit: report.xml | ||
coverage_report: | ||
coverage_format: cobertura | ||
path: coverage.xml | ||
|
||
|
||
pylint: | ||
extends: | ||
- .tox | ||
stage: test | ||
allow_failure: true | ||
script: | ||
- tox -e lint -- --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:codeclimate.json | ||
artifacts: | ||
when: always | ||
reports: | ||
codequality: codeclimate.json | ||
|
||
|
||
py39: | ||
extends: | ||
- .test | ||
image: python:3.9 | ||
script: | ||
- tox -e py39 -- --junitxml=report.xml --cov-report xml | ||
|
||
|
||
py310: | ||
extends: | ||
- .test | ||
image: python:3.10 | ||
script: | ||
- tox -e py310 -- --junitxml=report.xml --cov-report xml | ||
|
||
|
||
py311: | ||
extends: | ||
- .test | ||
image: python:3.11 | ||
script: | ||
- tox -e py311 -- --junitxml=report.xml --cov-report xml | ||
|
||
|
||
pages: | ||
extends: | ||
- .base | ||
stage: deploy | ||
script: | ||
- pip install sphinx sphinx_autodoc_typehints sphinx_autopackagesummary sphinx_rtd_theme | ||
- pip install -e . | ||
- sphinx-build -b html docs public | ||
artifacts: | ||
paths: | ||
- public | ||
only: | ||
- main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
!!python/object:qtools_metadata.metadata.Metadata | ||
measurement: !Measurement | ||
name: test-measurement | ||
user: Max Mustermann | ||
datetime: 2022-02-22 | ||
valid: false | ||
device: !Device | ||
name: test-device | ||
description: test device description | ||
layoutParameters: parameters | ||
sample: !Sample | ||
name: test-sample-15 | ||
description: test sample description | ||
creator: Miriam Musterfrau | ||
layout: !SampleLayout "4259afa2-4c41-4ab2-b69a-8b995d3c5fc2" | ||
factory: !Factory "9471ed6c-24ac-443a-b89e-3073ef4cfc52" | ||
wafer: !Wafer "dda3fa0c-fd1b-4561-992d-d7fc197502bf" | ||
layout: !DeviceLayout "7eff5ad7-5933-4731-9f96-9b43ae481cec" | ||
measurementType: !MeasurementType "edeba69c-cfd9-4227-8e0f-e40b63948cd2" | ||
settings: !MeasurementSettings | ||
name: test-settings | ||
settings: "{settings}" | ||
mapping: !MeasurementMapping | ||
name: test-mapping | ||
mapping: "{mapping}" | ||
experimentSetup: !ExperimentSetup | ||
name: ExperimentSetup1 | ||
temperature: "4.0" | ||
instrumentsChannels: "channels" | ||
standardSettings: "settings" | ||
filters: "filters" | ||
series: !MeasurementSeries "9c7cedb3-cf05-45ed-bf8c-8444a320ea8f" | ||
script: !MeasurementScript | ||
name: test-script | ||
language: python | ||
script: "print('Hello')" | ||
data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[gate_mapping] | ||
save_directory = C:/Users/till3/Documents/PythonScripts |