Test pyhc-core Pip Installation #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |