|
6 | 6 | branches: |
7 | 7 | - master |
8 | 8 | - ci |
| 9 | + - ci2 |
9 | 10 |
|
10 | 11 | pull_request: |
11 | 12 | branches: |
12 | 13 | - master |
13 | 14 |
|
14 | 15 | jobs: |
15 | | - doctest-and-lint: |
16 | | - runs-on: ubuntu-20.04 |
| 16 | + test-and-doctest: |
| 17 | + runs-on: ubuntu-24.04 |
17 | 18 | steps: |
18 | 19 | - uses: actions/checkout@v2 |
19 | | - - name: Set up Python ${{ matrix.python-version }} |
20 | | - uses: actions/setup-python@v2 |
21 | | - with: |
22 | | - python-version: 3.6.15 |
23 | | - |
24 | | - - name: Install pinned dependencies |
25 | | - run: | |
26 | | - python -m pip install --upgrade pip |
27 | | - 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 |
28 | | -
|
29 | | - - name: Install Skyfield |
30 | | - run: | |
31 | | - python setup.py sdist |
32 | | - pip install -e . |
33 | | -
|
34 | | - - name: Doctest |
35 | | - run: | |
36 | | - ./test-docs.sh |
37 | | -
|
38 | | - - name: Lint |
39 | | - run: | |
40 | | - pyflakes $(find skyfield/ -name '*.py') |
41 | | -
|
42 | | - test: |
43 | | - runs-on: ubuntu-20.04 |
44 | | - strategy: |
45 | | - fail-fast: false |
46 | | - matrix: |
47 | | - python: [python2, python3] |
| 20 | + - name: Run tests and doctests inside container |
| 21 | + run: ./containers/ci/run bash -c './test-code.sh && ./test-docs.sh' |
48 | 22 |
|
| 23 | + lint: |
| 24 | + runs-on: ubuntu-24.04 |
49 | 25 | steps: |
50 | 26 | - uses: actions/checkout@v2 |
51 | | - |
52 | | - - name: Install |
53 | | - run: | |
54 | | - sudo apt install -q -q python3-virtualenv virtualenv |
55 | | - virtualenv -p ${{matrix.python}} V |
56 | | -
|
57 | | - - name: Build scripts |
58 | | - run: | |
59 | | - cat <<'EOF' > GITHUB_INSTALL.sh |
60 | | - source ./V/bin/activate |
61 | | - echo PATH is $PATH |
62 | | - which python |
63 | | - python --version |
64 | | - python -m pip install --upgrade pip |
65 | | - python setup.py sdist |
66 | | - python -m pip install dist/* |
67 | | - python -m pip install mock pandas |
68 | | - python -m pip install https://github.com/brandon-rhodes/assay/archive/master.zip |
69 | | - EOF |
70 | | - cat <<'EOF' > GITHUB_TEST.sh |
71 | | - source ./V/bin/activate |
72 | | - cd ci && ../test-code.sh |
73 | | - EOF |
74 | | -
|
75 | | - - name: Install |
76 | | - run: | |
77 | | - bash -e -x GITHUB_INSTALL.sh |
78 | | -
|
79 | | - - name: Test |
80 | | - run: | |
81 | | - bash -e -x GITHUB_TEST.sh |
| 27 | + - name: Set up Python |
| 28 | + uses: actions/setup-python@v2 |
| 29 | + - name: Install linter |
| 30 | + run: python -m pip install --upgrade pyflakes |
| 31 | + - name: Run linter |
| 32 | + run: pyflakes $(find skyfield/ -name '*.py') |
0 commit comments