-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
28 lines (26 loc) · 873 Bytes
/
.gitlab-ci.yml
File metadata and controls
28 lines (26 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
test:
stage: test
image: python:3.10-slim
before_script:
- 'apt-get update && apt-get install -y curl git'
- 'python3 -m pip install --user --upgrade setuptools wheel twine versioneer future-fstrings'
- 'python3 -m pip install --user -r requirements.txt'
script:
- 'git describe'
- 'echo $CI_COMMIT_TAG'
- 'python3 -m pytest tests'
deploy:
stage: deploy
image: python:3.10-slim
before_script:
- 'apt-get update && apt-get install -y curl git'
- 'python3 -m pip install --user --upgrade pip setuptools wheel twine versioneer future-fstrings'
- 'python3 -m pip install --user -r requirements.txt'
script:
- 'git describe'
- 'echo $CI_COMMIT_TAG'
- 'python3 -m pytest tests'
- 'python3 -m build'
- 'python3 -m twine upload --verbose --username $USERNAME --password $PASSWORD dist/*'
only:
- tags