Skip to content

Commit

Permalink
Update setup.cfg for and python workflow config for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
timcnicholls committed Oct 2, 2023
1 parent 0b99c64 commit 52e9a3d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,30 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
defaults:
run:
working-directory: python

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Test odin-data
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install odin-data python pacakge
run: |
python3 -m venv venv && source venv/bin/activate && pip install --upgrade pip
cd python
python -m pip install --upgrade pip
pip install .[dev,meta_writer]
python -c "from odin_data import __version__; print(__version__)"
pytest tests/test_hdf5dataset.py
- name: Run tests
run:
pytest -vs --cov=odin_data --cov-report=term-missing
5 changes: 4 additions & 1 deletion python/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11

[options]
packages = find:
package_dir =
=src

install_requires =
odin-control @ git+https://git@github.com/odin-detector/odin-control.git@1.3.0
odin-control @ git+https://git@github.com/odin-detector/odin-control.git@1.4.0
posix_ipc>=1.0.4
pysnmp>=4.4.4
numpy>=1.14.0
Expand All @@ -35,6 +37,7 @@ meta_writer =
# For development tests/docs
dev =
pytest
pytest-cov
# Docs
sphinx-autobuild
sphinx-external-toc
Expand Down

0 comments on commit 52e9a3d

Please sign in to comment.