-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7234c3d
commit a321aa3
Showing
2 changed files
with
46 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
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,42 @@ | ||
variables: | ||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" | ||
|
||
cache: | ||
paths: | ||
- ".cache/pip" | ||
|
||
default: | ||
image: "python:3" | ||
|
||
build: | ||
stage: "build" | ||
script: | ||
- "pip install build" | ||
- "python3 -m build ." | ||
artifacts: | ||
paths: | ||
- "dist/*" | ||
expire_in: "1 week" | ||
|
||
install: | ||
stage: "test" | ||
script: | ||
- "pip install dist/*.whl" | ||
|
||
syntax check: | ||
stage: "test" | ||
script: | ||
- "python3 -m compileall vignette/" | ||
|
||
check build: | ||
stage: "test" | ||
script: | ||
- "pip install twine" | ||
- "twine check dist/*" | ||
|
||
test: | ||
stage: "test" | ||
script: | ||
- "pip install pytest" | ||
- "pip install .[pillow,pyqt6]" | ||
- "pytest -vv test*.py" |