diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..66dcdec --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Python package + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Test with unittest + run: python -m unittest discover diff --git a/pyproject.toml b/pyproject.toml index 3b24594..3a7a1b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "toolforgeio" -version = "0.0.9" +version = "0.0.10" description = "Library for building tools in the ToolForge Data Science tools ecosystem using Python" readme = "README.md" authors = [{ name = "Andy Boothe", email = "andy@toolforge.io" }] @@ -17,12 +17,13 @@ classifiers = [ keywords = ["toolforge", "toolforge.io"] # Some day, we should be able to sync requirements.txt to pyproject.toml... dependencies = [ - "requests~=2.28.2", - "openpyxl~=3.0.10", - "pandas~=1.5.3", - "PyYAML~=6.0", + "requests~=2.32.0", + "openpyxl~=3.1.5", + "pandas~=2.2.3", + "PyYAML~=6.0.2", "xlrd~=2.0.1", - "chardet~=5.1.0", + "chardet~=5.2.0", + # A version of Tomli, the tomllib module, was added to the standard library in Python 3.11 via PEP 680 'tomli; python_version < "3.11"' ] requires-python = ">=3.9" diff --git a/requirements.txt b/requirements.txt index 2d003f8..b37a0e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -requests~=2.28.2 -openpyxl~=3.0.10 -pandas~=1.5.3 -PyYAML~=6.0 +requests~=2.32.0 +openpyxl~=3.1.5 +pandas~=2.2.3 +PyYAML~=6.0.2 xlrd~=2.0.1 -chardet~=5.1.0 \ No newline at end of file +chardet~=5.2.0 \ No newline at end of file