From 1bbd017522d9d7c3cc95f4422168f4592ec5ff19 Mon Sep 17 00:00:00 2001 From: Faisal Date: Mon, 6 Jan 2025 15:25:27 -0500 Subject: [PATCH] add-path logic to pass through to create-pull-request (#22) * add-path logic, and edgetest action updates * removing recursion action set * removing 3.13 --- .github/workflows/test-action.yml | 5 +++-- README.md | 2 +- VERSION | 2 +- action.yml | 9 ++++++--- requirements.txt | 4 ++-- setup.cfg | 6 +++--- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 000ee6b..0ee446c 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ 3.8, 3.9, "3.10", "3.11" ] + python-version: [3.9, "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v2 - uses: conda-incubator/setup-miniconda@v2 @@ -30,4 +30,5 @@ jobs: edgetest-flags: '--config=setup.cfg --export' base-branch: 'dev' skip-pr: 'true' - python-version: ${{ matrix.python-version }} \ No newline at end of file + python-version: ${{ matrix.python-version }} + add-paths: 'setup.cfg, requirements.txt' \ No newline at end of file diff --git a/README.md b/README.md index cce4d46..7c68da1 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Options | `base-branch` | the branch which you want to PR against if there are changes. This is typically your development branch | `'dev'` | `'develop' ` | | `skip-pr` | skips the action summiting a PR if there are any changes. | | `'true'` or `'false'` | | `python-version` | Python version to use (from "setup-miniconda"). | 3.10 | 3.7, 3.8, 3.9, 3.10 | - +| `add-paths` | A comma separated list of file paths to commit. (from "peter-evans/create-pull-request"). | `'*'` | `'requirements.txt, setup.cfg, pyproject.toml'`| Action Dependencies diff --git a/VERSION b/VERSION index 1ce69a7..1d81d23 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.5 +v1.6 diff --git a/action.yml b/action.yml index 70c8f7d..ad8078c 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,11 @@ inputs: description: 'Python version to use (from "setup-miniconda"). Defaults to 3.10. See https://anaconda.org/anaconda/python for available "python" versions.' default: '3.10' + add-paths: # files to include in git commit + description: 'A comma separated list of file paths to commit. + Paths should follow gits pathspec syntax. If no paths are specified, + all new and modified files are added.' + default: '*' runs: using: "composite" steps: @@ -45,6 +50,4 @@ runs: commit-message: '[edgetest] automated change' body: Automated changes by [run-edgetest-action](https://github.com/edgetest-dev/run-edgetest-action) GitHub action add-paths: | - requirements.txt - setup.cfg - pyproject.toml + ${{ inputs.add-paths }} diff --git a/requirements.txt b/requirements.txt index ab2820d..3cc65ef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,9 +4,9 @@ # # pip-compile --output-file=requirements.txt setup.cfg # -numpy==1.22.3 +numpy==2.0.0 # via pandas -pandas==1.2.0 +pandas==2.0.0 # via toy-package (setup.cfg) python-dateutil==2.8.2 # via pandas diff --git a/setup.cfg b/setup.cfg index 61d9573..b53d207 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,21 +3,21 @@ name = toy_package version = 0.1.0 description = Fake description python_requires = - >=3.7.0 + >=3.9.0 [options] zip_safe = False include_package_data = True packages = find: install_requires = - pandas<=1.2.0 + pandas<=2.0.0 [options.extras_require] tests = pytest [edgetest] -python_version = 3.10 +python_version = 3.11 extras = tests deps =