Skip to content

Commit

Permalink
update requirements and create compatability testing action
Browse files Browse the repository at this point in the history
  • Loading branch information
mdp0023 committed Apr 17, 2024
1 parent 64d7479 commit 393f91b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 17 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/compatability_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: compatability_testing

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, 3.10]
dependencies: ["latest", "minimum"]

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 dependencies
run: |
python -m pip install --upgrade pip
if [ "${{ matrix.dependencies }}" = "latest" ]; then
pip install .
else
pip install .[minimum]
fi
- name: Test with pytest
run: |
pip install pytest
pytest
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ build-backend = "setuptools.build_meta"
name = "SVInsight"
version = "0.2.7"
dependencies = [
"census==0.8.21",
"factor_analyzer==0.5.1",
"geopandas==0.14.2",
"numpy==1.26.4",
"pandas==2.2.2",
"PyYAML==6.0.1",
"scikit_learn==1.3.0",
"openpyxl==3.0.10"
"census>=0.8.21",
"factor_analyzer>=0.5.1",
"geopandas>=0.14.2",
"numpy>=1.26.4",
"pandas>=2.2.2",
"PyYAML>=6.0.1",
"scikit_learn>=1.3.0",
"openpyxl>=3.0.10"
]
requires-python = ">=3.8"
authors = [
Expand Down
18 changes: 9 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
census==0.8.21
factor_analyzer==0.5.1
geopandas==0.14.2
numpy==1.26.4
pandas==2.2.2
pytest==8.1.1
PyYAML==6.0.1
scikit_learn==1.3.0
census>=0.8.21
factor_analyzer>=0.5.1
geopandas>=0.14.2
numpy>=1.26.4
pandas>=2.2.2
pytest>=8.1.1
PyYAML>=6.0.1
scikit_learn>=1.3.0
setuptools==68.2.2
openpyxl==3.0.10
openpyxl>=3.0.10

0 comments on commit 393f91b

Please sign in to comment.