-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (81 loc) · 2.42 KB
/
test.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Test compatibility
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * *' # daily
workflow_dispatch:
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest # TODO: make this `["ubuntu-latest", "windows-latest", "macos-latest"]`?
strategy:
matrix:
python-version: ["3.10"]
# python-version: ["3.9", "3.10", "3.11", "3.12"]
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 core PyHC packages # Install all dependencies listed in pyproject.toml
run: |
python -m pip install --upgrade pip
pip install .
- name: Clone and test hapiclient
run: |
git clone https://github.com/hapi-server/client-python.git
cd client-python
pip install .
pip install hapiplot deepdiff
pytest
# Kamodo package has no unit tests
# - name: Clone and test kamodo
# run: |
# git clone https://github.com/nasa/Kamodo.git
# cd Kamodo
# pip install -r requirements.txt
# pip install .
# pytest
- name: Clone and test plasmapy
if: matrix.python-version != '3.9' # Exclude PlasmaPy for Python 3.9
run: |
git clone https://github.com/PlasmaPy/PlasmaPy.git
cd PlasmaPy
pip install -r requirements.txt
pip install .
pytest
- name: Clone and test pysat
run: |
git clone https://github.com/pysat/pysat.git
cd pysat
pip install -r requirements.txt
pip install -r test_requirements.txt
pip install .
pytest
- name: Clone and test pyspedas
run: |
git clone https://github.com/spedas/pyspedas.git
cd PySPEDAS
pip install -r requirements.txt
pip install .
pytest
- name: Clone and test spacepy
run: |
git clone https://github.com/spacepy/spacepy.git
cd spacepy
pip install -r requirements.txt
pip install .
pytest
- name: Clone and test sunpy
run: |
git clone https://github.com/sunpy/sunpy.git
cd sunpy
# Extract dependencies from pyproject.toml
pip install -r requirements.txt
pip install .
pytest