Skip to content

Commit 0ecabf6

Browse files
remove python3.9 from workflows (#600)
Removing Python3.9 from Test workflows as it is not supported by MCP
1 parent dd92db4 commit 0ecabf6

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python_version: ["3.9", "3.10", "3.11", "3.12"]
17+
python_version: ["3.10", "3.11", "3.12"]
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4

.github/workflows/pebblo_ci_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python_version: ["3.9", "3.10", "3.11", "3.12"]
12+
python_version: ["3.10", "3.11", "3.12"]
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build Reporter Package And Publish on Test PyPi
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: build_reporter_distribution
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.11.x"
22+
23+
- name: Install pypa/build
24+
run: |
25+
DATE_TIME=$(date +'%Y%m%d%H%M')
26+
PROJECT_FILE_PATH=tools/pyproject.toml
27+
VERSION_FILE=$(grep -m 1 "version =" $PROJECT_FILE_PATH | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
28+
VERSION="$VERSION_FILE$DATE_TIME"
29+
awk -v new_version="$VERSION" '/^version = "/ {gsub(/"[^"]+"/, "\"" new_version "\"")} 1' "$PROJECT_FILE_PATH" > tmpfile && mv tmpfile "$PROJECT_FILE_PATH"
30+
pip install build
31+
cd tools
32+
python -m build --wheel
33+
ls -la
34+
ls -la dist/
35+
36+
- name: Store the distribution packages
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: reporter-package-distributions
40+
path: tools/dist/
41+
42+
release-on-test-pypi:
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- name: Download all the dists
47+
uses: actions/download-artifact@v4
48+
with:
49+
name: reporter-package-distributions
50+
path: tools/dist/
51+
52+
- name: Upload to Test PyPI
53+
run: |
54+
pip install twine==6.0.1
55+
twine upload --repository-url https://test.pypi.org/legacy/ tools/dist/*
56+
env:
57+
TWINE_USERNAME: __token__
58+
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_TOKEN }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
RunUnitTests:
2626
strategy:
2727
matrix:
28-
python_version: ["3.9", "3.10", "3.11", "3.12.3", "3.12.5"]
28+
python_version: ["3.10", "3.11", "3.12.3", "3.12.5"]
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)