Skip to content

Commit e5498cb

Browse files
authored
chore: Pin Python version to 3.11 (#72)
Same as cloudquery/plugin-pb-python#31
1 parent 55b8e4e commit e5498cb

File tree

3 files changed

+31
-27
lines changed

3 files changed

+31
-27
lines changed

.github/workflows/lint.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v4
1616
with:
17-
python-version: "3.x"
17+
python-version: "3.11"
1818
- name: Install dependencies
19-
run: pip install -r requirements.txt
19+
run: |
20+
pip install --upgrade pip
21+
pip install -r requirements.txt
2022
- name: Check formatting
2123
run: make fmt-check

.github/workflows/publish.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@ name: publish
22
on:
33
push:
44
tags:
5-
- 'v*.*.*'
5+
- "v*.*.*"
66

77
jobs:
8-
pypi-publish:
9-
name: upload release to PyPI
10-
runs-on: ubuntu-latest
11-
permissions:
12-
# IMPORTANT: this permission is mandatory for trusted publishing
13-
id-token: write
14-
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v3
17-
- name: Set up Python
18-
uses: actions/setup-python@v4
19-
with:
20-
python-version: '3.x'
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install -r requirements.txt
25-
pip install build
26-
- name: Build package
27-
run: python -m build
28-
- name: Publish package distributions to PyPI
29-
uses: pypa/gh-action-pypi-publish@release/v1
8+
pypi-publish:
9+
name: upload release to PyPI
10+
runs-on: ubuntu-latest
11+
permissions:
12+
# IMPORTANT: this permission is mandatory for trusted publishing
13+
id-token: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.11"
21+
- name: Install dependencies
22+
run: |
23+
pip install --upgrade pip
24+
pip install -r requirements.txt
25+
pip install build
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish package distributions to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/unittests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: "3.x"
19+
python-version: "3.11"
2020
- name: Install dependencies
21-
run: pip install -r requirements.txt
21+
run: |
22+
pip install --upgrade pip
23+
pip install -r requirements.txt
2224
- name: Run tests
2325
run: make test

0 commit comments

Comments
 (0)