-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
38 lines (32 loc) · 1.52 KB
/
.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
language: python
dist: focal
python:
- "3.8"
- "3.9"
# - "3.6"
# - "3.7"
install:
- export AIRFLOW_VERSION=2.4.0
- export PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
- export CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
- pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
- pip install -r requirements.txt
- pip install pre-commit
- airflow db init
script:
- pre-commit run --all-files
- pip install . # Check package setup
jobs:
include:
- stage: deploy
python: 3.8
deploy:
provider: pypi
user: "__token__"
password:
secure: VkXM0rArpus0FXeCaebUiVSNhn5DvPa1vE8cvubyJb0OX83PFPLitiJhPKncCFx071hhjRiPRGeU4WCBl7p/aVjVv6tTrb32jFQl8MbV+0GcfSu35Mca4VSyFNzWmpY1JDonJ/RN2k/Sj1ipkFts0iQ//MBERp7lmNBul9eTXQg9Fdc2QAOj/SXYiBCp/R65sh1jXwT/ylCTKafGbIx6XAcJQVYt6rbxBCUOf6QQnasrW9E+yQMl3Q1uNqPUNWZPJNqhWehxubtkquDg/+CAk5Mmm+o1NSVElF0wKyxYd/55vbSRkCku3b87tYOiwpl1RxwJ/Mc9EiOmaqOSdY/JKY9osu9B15ji5IzOmhpt8AHc0iTgDrT3p6o/nTviVlmuZdzJTS3q3q6vcz2JFe2VpFUb2/8I+4Ay5lC7+jzF/XNg4QIiCAuxEwH2ZtC5wwt8uYWi6YCiB1UYOdvIdos3KgZHyTW/QRjLT9sJ7DlQP69UZ9yOvLLFqzrkc3PlGYlzK9nqVzucRI06vJpHRknzv9XHJUUovvB+7TI+nU3re7Gkyh/n1+LZH2+g1DLbxj+pV5WV62EYyaiMiN/ROmN0lVC1drI4LcZ9po6RWiUDnrirVOkUMm3cxrUImy46FIc0uxDNkAI0URZP5gBTYYEfEMw8nBDwONTAvTCzbW50zaw=
on:
branch: master
tags: true
after_success:
- bash <(curl -s https://codecov.io/bash)