mmng-ui 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,92 @@
1
+ image: python:latest
2
+
3
+ # Change pip's cache directory to be inside the project directory since we can
4
+ # only cache local items.
5
+ variables:
6
+ PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
7
+
8
+ # https://pip.pypa.io/en/stable/topics/caching/
9
+ cache:
10
+ paths:
11
+ - .cache/pip
12
+
13
+ stages:
14
+ - test
15
+ - build
16
+ - pypi
17
+ - release
18
+
19
+ test:
20
+ stage: test
21
+ tags:
22
+ - docker
23
+ image: "python:$VERSION"
24
+ script:
25
+ - python --version ; pip --version # For debugging
26
+ - pip install pytest tox click
27
+ - tox -e py${VERSION}
28
+ parallel:
29
+ matrix:
30
+ - VERSION: ['3.9', '3.11']
31
+ artifacts:
32
+ when: always
33
+ reports:
34
+ coverage_report:
35
+ coverage_format: cobertura
36
+ path: coverage.xml
37
+ coverage: '/TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
38
+
39
+ build:
40
+ stage: build
41
+ tags:
42
+ - docker
43
+ image: "python:latest"
44
+ script:
45
+ - pip install build
46
+ - python3 -m build
47
+ artifacts:
48
+ paths:
49
+ - dist/
50
+
51
+ pypi_test:
52
+ stage: pypi
53
+ tags:
54
+ - docker
55
+ image: "python:latest"
56
+ rules:
57
+ - if: $CI_COMMIT_TAG
58
+ when: never
59
+ - when: on_success
60
+ variables:
61
+ TWINE_USERNAME: $PYPI_TEST_USERNAME
62
+ TWINE_PASSWORD: $PYPI_TEST_PASSWORD
63
+ script:
64
+ - pip install twine
65
+ - python3 -m twine upload --repository testpypi --skip-existing dist/*
66
+
67
+ pypi_prod:
68
+ stage: pypi
69
+ tags:
70
+ - docker
71
+ image: "python:latest"
72
+ rules:
73
+ - if: $CI_COMMIT_TAG
74
+ variables:
75
+ TWINE_USERNAME: $PYPI_PROD_USERNAME
76
+ TWINE_PASSWORD: $PYPI_PROD_PASSWORD
77
+ script:
78
+ - pip install twine
79
+ - python3 -m twine upload dist/*
80
+
81
+ release_job:
82
+ stage: release
83
+ tags:
84
+ - docker
85
+ image: registry.gitlab.com/gitlab-org/release-cli:latest
86
+ rules:
87
+ - if: $CI_COMMIT_TAG # Run this job when a tag is created
88
+ script:
89
+ - echo "running release_job"
90
+ release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
91
+ tag_name: '$CI_COMMIT_TAG'
92
+ description: '$CI_COMMIT_TAG'