-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
38 lines (33 loc) · 852 Bytes
/
.travis.yml
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
28
29
30
31
32
33
34
35
36
37
38
---
stages:
- name: "lint"
- name: "pytest"
- name: "deploy-pypi"
if: tag IS present AND branch = main
language: python
python:
- "3.9"
# before_install:
# - pip install -r requirements.txt
# --------------------------------------------------------------------------
# Linting & tests
# --------------------------------------------------------------------------
jobs:
include:
- stage: "lint"
install:
- pip install tox-travis
- pip install tox==3.28.0
script:
- tox -e ALL
- stage: "pytest"
script:
- pytest
- stage: "deploy-pypi"
deploy:
provider: pypi
username: __token__
password: $TOKEN_PYPITEST
on:
tags: true
branch: main