mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-09-25 19:52:10 +02:00
add github workflow using pip installation for python 3.8 - 3.12
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
name: main
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
|
||||
continue-on-error: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install -e . --no-deps
|
||||
|
||||
- name: Run tests
|
||||
run: pytest
|
||||
@@ -0,0 +1,11 @@
|
||||
numpy>=1.0
|
||||
scipy>=1.0
|
||||
matplotlib>=2.0 # 2.0 introduces better colormaps which are used by default
|
||||
pytorch>=1.9.0 #1.9.0 implements support for autograd on indexed complex tensors
|
||||
h5py>=2.1
|
||||
python-dateutil
|
||||
pytest
|
||||
pooch
|
||||
sphinx>=4.3.0 # Fixes a bug with bulleted lists
|
||||
sphinx-argparse
|
||||
sphinx_rtd_theme>=0.5.1 # Fixes a bug with bulleted lists
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
numpy>=1.0
|
||||
scipy>=1.0
|
||||
matplotlib>=2.0 # 2.0 introduces better colormaps which are used by default
|
||||
pytorch>=1.9.0 #1.9.0 implements support for autograd on indexed complex tensors
|
||||
torch>=1.9.0 #1.9.0 implements support for autograd on indexed complex tensors
|
||||
h5py>=2.1
|
||||
python-dateutil
|
||||
pytest
|
||||
|
||||
Reference in New Issue
Block a user