Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit ef6e672

Browse files
authored
Merge pull request marcospereirampj#382 from marcospereirampj/381-add-support-for-python-311
[WIP] 381 add support for python 311
2 parents eda6a27 + 6554235 commit ef6e672

4 files changed

Lines changed: 131 additions & 131 deletions

File tree

.github/workflows/bump.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@ name: Bump version
22

33
on:
44
workflow_run:
5-
workflows: [ "Lint" ]
6-
branches: [ master ]
5+
workflows: ["Lint"]
6+
branches: [master]
77
types:
88
- completed
99

1010
jobs:
1111
tag-version:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
with:
16-
token: ${{ secrets.PAT_TOKEN }}
17-
- uses: actions/setup-node@v3
18-
with:
19-
node-version: 18
20-
- name: determine-version
21-
run: |
22-
VERSION=$(npx semantic-release --branches master --dry-run | { grep -i 'the next release version is' || test $? = 1; } | sed -E 's/.* ([[:digit:].]+)$/\1/')
23-
echo "VERSION=$VERSION" >> $GITHUB_ENV
24-
id: version
25-
- uses: rickstaa/action-create-tag@v1
26-
continue-on-error: true
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
29-
with:
30-
tag: v${{ env.VERSION }}
31-
message: "Releasing v${{ env.VERSION }}"
32-
github_token: ${{ secrets.PAT_TOKEN }}
14+
- uses: actions/checkout@v3
15+
with:
16+
token: ${{ secrets.PAT_TOKEN }}
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
- name: determine-version
21+
run: |
22+
VERSION=$(npx semantic-release --branches master --dry-run | { grep -i 'the next release version is' || test $? = 1; } | sed -E 's/.* ([[:digit:].]+)$/\1/')
23+
echo "VERSION=$VERSION" >> $GITHUB_ENV
24+
id: version
25+
- uses: rickstaa/action-create-tag@v1
26+
continue-on-error: true
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
29+
with:
30+
tag: v${{ env.VERSION }}
31+
message: "Releasing v${{ env.VERSION }}"
32+
github_token: ${{ secrets.PAT_TOKEN }}

.github/workflows/daily.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Daily check
22

33
on:
44
schedule:
5-
- cron: '0 4 * * *'
5+
- cron: "0 4 * * *"
66

77
jobs:
88
test:
@@ -12,16 +12,16 @@ jobs:
1212
matrix:
1313
python-version: ["3.7", "3.8", "3.9", "3.10"]
1414
steps:
15-
- uses: actions/checkout@v3
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v3
18-
with:
19-
python-version: ${{ matrix.python-version }}
20-
- uses: docker-practice/actions-setup-docker@master
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
python -m pip install tox
25-
- name: Run tests
26-
run: |
27-
tox -e tests
15+
- uses: actions/checkout@v3
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- uses: docker-practice/actions-setup-docker@master
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install tox
25+
- name: Run tests
26+
run: |
27+
tox -e tests

.github/workflows/lint.yaml

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,94 +2,94 @@ name: Lint
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
check-commits:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: webiny/action-conventional-commits@v1.0.3
13+
- uses: actions/checkout@v3
14+
- uses: webiny/action-conventional-commits@v1.0.3
1515

1616
check-linting:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
20-
- name: Set up Python 3.10
21-
uses: actions/setup-python@v3
22-
with:
23-
python-version: "3.10"
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
python -m pip install tox
28-
- name: Check linting, formatting
29-
run: |
30-
tox -e check
19+
- uses: actions/checkout@v3
20+
- name: Set up Python 3.10
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: "3.10"
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install tox
28+
- name: Check linting, formatting
29+
run: |
30+
tox -e check
3131
3232
check-docs:
3333
runs-on: ubuntu-latest
3434
needs:
35-
- check-commits
36-
- check-linting
35+
- check-commits
36+
- check-linting
3737
steps:
38-
- uses: actions/checkout@v3
39-
- name: Set up Python 3.10
40-
uses: actions/setup-python@v3
41-
with:
42-
python-version: "3.10"
43-
- name: Install dependencies
44-
run: |
45-
python -m pip install --upgrade pip
46-
python -m pip install tox
47-
- name: Check documentation build
48-
run: |
49-
tox -e docs
38+
- uses: actions/checkout@v3
39+
- name: Set up Python 3.10
40+
uses: actions/setup-python@v3
41+
with:
42+
python-version: "3.10"
43+
- name: Install dependencies
44+
run: |
45+
python -m pip install --upgrade pip
46+
python -m pip install tox
47+
- name: Check documentation build
48+
run: |
49+
tox -e docs
5050
5151
test:
5252
runs-on: ubuntu-latest
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
python-version: ["3.7", "3.8", "3.9", "3.10"]
56+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
5757
needs:
58-
- check-commits
59-
- check-linting
58+
- check-commits
59+
- check-linting
6060
steps:
61-
- uses: actions/checkout@v3
62-
- name: Set up Python ${{ matrix.python-version }}
63-
uses: actions/setup-python@v3
64-
with:
65-
python-version: ${{ matrix.python-version }}
66-
- uses: docker-practice/actions-setup-docker@master
67-
- name: Install dependencies
68-
run: |
69-
python -m pip install --upgrade pip
70-
python -m pip install tox
71-
- name: Run tests
72-
run: |
73-
tox -e tests
74-
- name: Keycloak logs
75-
run: |
76-
cat keycloak_test_logs.txt
61+
- uses: actions/checkout@v3
62+
- name: Set up Python ${{ matrix.python-version }}
63+
uses: actions/setup-python@v3
64+
with:
65+
python-version: ${{ matrix.python-version }}
66+
- uses: docker-practice/actions-setup-docker@master
67+
- name: Install dependencies
68+
run: |
69+
python -m pip install --upgrade pip
70+
python -m pip install tox
71+
- name: Run tests
72+
run: |
73+
tox -e tests
74+
- name: Keycloak logs
75+
run: |
76+
cat keycloak_test_logs.txt
7777
7878
build:
7979
runs-on: ubuntu-latest
8080
needs:
81-
- test
82-
- check-docs
81+
- test
82+
- check-docs
8383
steps:
84-
- uses: actions/checkout@v3
85-
- name: Set up Python 3.10
86-
uses: actions/setup-python@v3
87-
with:
88-
python-version: "3.10"
89-
- name: Install dependencies
90-
run: |
91-
python -m pip install --upgrade pip
92-
python -m pip install tox
93-
- name: Run build
94-
run: |
95-
tox -e build
84+
- uses: actions/checkout@v3
85+
- name: Set up Python 3.10
86+
uses: actions/setup-python@v3
87+
with:
88+
python-version: "3.10"
89+
- name: Install dependencies
90+
run: |
91+
python -m pip install --upgrade pip
92+
python -m pip install tox
93+
- name: Run build
94+
run: |
95+
tox -e build

.github/workflows/publish.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,41 @@ name: Publish
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
with:
14-
fetch-depth: '0'
15-
- name: Set up Python 3.10
16-
uses: actions/setup-python@v3
17-
with:
18-
python-version: "3.10"
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
python -m pip install tox wheel twine
23-
- name: Apply the tag version
24-
run: |
25-
version=${{ github.ref_name }}
26-
sed -Ei '/^version = /s|= "[0-9.]+"$|= "'${version:-1}'"|' pyproject.toml
27-
- name: Run build
28-
run: |
29-
tox -e build
30-
- name: Publish to PyPi
31-
env:
32-
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
33-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
34-
run: |
35-
twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
36-
- name: Run changelog
37-
run: |
38-
tox -e changelog
39-
- uses: stefanzweifel/git-auto-commit-action@v4
40-
with:
41-
commit_message: "docs: changelog update"
42-
branch: master
43-
file_pattern: CHANGELOG.md
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: "0"
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: "3.10"
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
python -m pip install tox wheel twine
23+
- name: Apply the tag version
24+
run: |
25+
version=${{ github.ref_name }}
26+
sed -Ei '/^version = /s|= "[0-9.]+"$|= "'${version:-1}'"|' pyproject.toml
27+
- name: Run build
28+
run: |
29+
tox -e build
30+
- name: Publish to PyPi
31+
env:
32+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
33+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
34+
run: |
35+
twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
36+
- name: Run changelog
37+
run: |
38+
tox -e changelog
39+
- uses: stefanzweifel/git-auto-commit-action@v4
40+
with:
41+
commit_message: "docs: changelog update"
42+
branch: master
43+
file_pattern: CHANGELOG.md

0 commit comments

Comments
 (0)