-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.34 KB
/
test-pip-installation.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
name: Test pyhc-core Pip Installation
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * *' # daily
jobs:
test-pip-install:
runs-on: ubuntu-latest
strategy:
matrix:
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 pyhc-core
run: |
python -m pip install --upgrade pip
pip install pyhc-core
- name: Check core package imports
run: |
python -c "import hapiclient"
if [ "${{ matrix.python-version }}" != "3.12" ]; then pip show kamodo | grep Version; fi # Exclude Kamodo for Python 3.12 due to known compatibility issue
python -c "import plasmapy"
python -c "import pysat"
python -c "import pyspedas"
python -c "import spacepy"
python -c "import sunpy"
- name: Check core package versions
run: |
pip show hapiclient | grep Version
pip show kamodo | grep Version
pip show plasmapy | grep Version
pip show pysat | grep Version
pip show pyspedas | grep Version
pip show spacepy | grep Version
pip show sunpy | grep Version