forked from sunpy/sunraster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
66 lines (57 loc) · 1.55 KB
/
config.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: 2.1
no-backports: &no-backports
name: Skip any branches called cherry-pick
command: |
if [[ "${CIRCLE_BRANCH}" == *"cherry-pick"* || "${CIRCLE_BRANCH}" == *"backport"* ]]; then
circleci step halt
fi
skip-check: &skip-check
name: Check for [ci skip]
command: bash .circleci/early_exit.sh
merge-check: &merge-check
name: Check if we need to merge upstream main
command: |
if [[ -n "${CIRCLE_PR_NUMBER}" ]]; then
git fetch origin --tags
git fetch origin +refs/pull/$CIRCLE_PR_NUMBER/merge:pr/$CIRCLE_PR_NUMBER/merge
git checkout -qf pr/$CIRCLE_PR_NUMBER/merge
fi
apt-run: &apt-install
name: Install apt packages
command: |
apt update
apt install -y graphviz build-essential libopenjp2-7
jobs:
twine-check:
docker:
- image: continuumio/miniconda3
steps:
- checkout
- run: *skip-check
- run: *merge-check
- run: pip install -U pep517
- run: python -m pep517.build --source .
- run: python -m pip install -U --user --force-reinstall twine
- run: python -m twine check dist/*
pip-install:
docker:
- image: continuumio/miniconda3
steps:
- checkout
- run: *skip-check
- run: *merge-check
- run: *apt-install
- run: pip install -U pip
- run: pip install --progress-bar off .[all,dev]
- run: pip install -e .[all,dev]
workflows:
version: 2
twine-check:
jobs:
- twine-check
pip-install:
jobs:
- pip-install
notify:
webhooks:
- url: https://giles.cadair.dev/circleci