Skip to content

Commit

Permalink
ci: introduce .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrargyrum committed Sep 5, 2023
1 parent 7234c3d commit a321aa3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
max_line_length = 100

[.gitlab-ci.yml]
indent_style = space
indent_size = 4
42 changes: 42 additions & 0 deletions .gitlab-ci.yml
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"

0 comments on commit a321aa3

Please sign in to comment.