forked from skyfielders/python-skyfield
-
Notifications
You must be signed in to change notification settings - Fork 2
executable file
·64 lines (52 loc) · 1.37 KB
/
ci.yml
File metadata and controls
executable file
·64 lines (52 loc) · 1.37 KB
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
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
doctest-and-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install pinned dependencies
run: |
python -m pip install --upgrade pip
pip install astropy==3.0.1 docutils==0.17.1 matplotlib==3.3.0 numpy==1.15.4 pandas==1.0.0 pyflakes scipy==1.2.2 sphinx==1.7.2 spktype21
- name: Install Skyfield
run: |
python setup.py sdist
pip install -e .
- name: Doctest
run: |
./test-docs.sh
- name: Lint
run: |
pyflakes $(find skyfield/ -name '*.py')
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
python setup.py sdist
pip install dist/*
pip install mock pandas
pip install https://github.com/brandon-rhodes/assay/archive/master.zip
- name: Test
run: |
cd ci && ../test-code.sh