-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
39 lines (39 loc) · 904 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
39
language: python
dist: focal
python:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
env:
- UPGRADES="-U --only-binary 'pint,pandas' pint pandas"
- UPGRADES=""
install:
- pip install --only-binary ':all:' -r requirements.txt
- pip install --only-binary ':all:' -r test_requirements.txt
- pip install $UPGRADES -e .
script:
- bash scripts/run_tests.sh
- test "$UPGRADES" != "" || test $TRAVIS_PYTHON_VERSION != "3.10" || bash scripts/build_docs.sh
branches:
only:
- main
- /^v[\.0-9]+$/
deploy:
- provider: pages
skip_cleanup: true
github_token: "$GH_SECRET_TOKEN"
keep_history: true
local_dir: "./docs/_build/html/"
on:
tags: true
python: '3.10' # only need this to run once
env: UPGRADES=""
- provider: pypi
user: "__token__"
password: "$PYPI_API_TOKEN"
distributions: "sdist bdist_wheel"
skip_existing: true
on:
tags: true