Skip to content

Commit 7707286

Browse files
committed
Added basic Python end of life action
1 parent f06af78 commit 7707286

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check Python Version End of Life
2+
on:
3+
workflow_dispatch:
4+
repository_dispatch:
5+
types: [check_python_eol]
6+
jobs:
7+
check_url_links:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set Up Python
12+
uses: actions/setup-python@v5
13+
- name: Display Python Version
14+
run: python -c "import sys; print(sys.version)"
15+
shell: bash
16+
- name: Checkout STUMPY
17+
if: "startsWith(steps.python.outputs.version, env.req-python-version)"
18+
uses: actions/checkout@v4
19+
with:
20+
repository: stumpy-dev/stumpy
21+
- name: Check Python Version End of Life
22+
run: |
23+
if [[ `./min_version.py | grep python | grep Mismatch | wc -l` -gt "0" ]]; then
24+
echo "Bump minimum version due to Python end-of-life"
25+
exit 1
26+
fi
27+
shell: bash

0 commit comments

Comments
 (0)