Skip to content

Commit

Permalink
updated requirements.txt, GH actions testing
Browse files Browse the repository at this point in the history
  • Loading branch information
klemengit committed Apr 18, 2024
1 parent 0299185 commit 7047498
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/python_package_testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Testing

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ classifiers = [
dev = [
"sphinx",
"twine",
"wheel",
"build",
"pytest",
"sphinx-book-theme",
Expand Down
9 changes: 8 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
matplotlib>=3.0.0
numpy>=1.15.4
pytest>=3.0.5
scipy>=1.0.0
pyMRAW>=0.30
psutil
Expand All @@ -12,3 +11,11 @@ napari[all]
magicgui
imageio[pyav]
opencv-python
sphinx
twine
build
pytest
sphinx-book-theme
sphinx-copybutton
nbsphinx
nbsphinx_link

0 comments on commit 7047498

Please sign in to comment.