Skip to content

Commit 7247c92

Browse files
committed
updated Python version in GitHub Actions workflow to 3.13
1 parent 99cc280 commit 7247c92

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

.github/workflows/main.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,59 +10,59 @@ jobs:
1010
MYSQL_ALLOW_EMPTY_PASSWORD: yes
1111
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
1212
ports:
13-
- 3306:3306
13+
- 3306:3306
1414
postgres:
1515
image: postgres
1616
env:
1717
POSTGRES_USER: postgres
1818
POSTGRES_PASSWORD: postgres
1919
POSTGRES_DB: test
2020
ports:
21-
- 5432:5432
21+
- 5432:5432
2222
steps:
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-python@v5
25-
with:
26-
python-version: '3.12'
27-
check-latest: true
28-
- name: Setup databases
29-
run: |
30-
pip install .
31-
pip install mysqlclient psycopg2-binary SQLAlchemy
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-python@v5
25+
with:
26+
python-version: "3.13"
27+
check-latest: true
28+
- name: Setup databases
29+
run: |
30+
pip install .
31+
pip install mysqlclient psycopg2-binary SQLAlchemy
3232
33-
- name: Run tests
34-
run: python tests/sql.py
35-
env:
36-
MYSQL_HOST: 127.0.0.1
37-
POSTGRESQL_HOST: 127.0.0.1
33+
- name: Run tests
34+
run: python tests/sql.py
35+
env:
36+
MYSQL_HOST: 127.0.0.1
37+
POSTGRESQL_HOST: 127.0.0.1
3838

39-
- name: Install pypa/build
40-
run: python -m pip install build --user
39+
- name: Install pypa/build
40+
run: python -m pip install build --user
4141

42-
- name: Build a binary wheel and a source tarball
43-
run: python -m build --sdist --wheel --outdir dist/ .
42+
- name: Build a binary wheel and a source tarball
43+
run: python -m build --sdist --wheel --outdir dist/ .
4444

45-
- name: Deploy to PyPI
46-
if: ${{ github.ref == 'refs/heads/main' }}
47-
uses: pypa/gh-action-pypi-publish@release/v1
48-
with:
49-
user: __token__
50-
password: ${{ secrets.PYPI_API_TOKEN }}
45+
- name: Deploy to PyPI
46+
if: ${{ github.ref == 'refs/heads/main' }}
47+
uses: pypa/gh-action-pypi-publish@release/v1
48+
with:
49+
user: __token__
50+
password: ${{ secrets.PYPI_API_TOKEN }}
5151

52-
- name: Get Version
53-
id: py_version
54-
run: |
55-
echo ::set-output name=version::$(python3 setup.py --version)
52+
- name: Get Version
53+
id: py_version
54+
run: |
55+
echo ::set-output name=version::$(python3 setup.py --version)
5656
57-
- name: Create Release
58-
if: ${{ github.ref == 'refs/heads/main' }}
59-
uses: actions/github-script@v7
60-
with:
61-
github-token: ${{ github.token }}
62-
script: |
63-
github.rest.repos.createRelease({
64-
owner: context.repo.owner,
65-
repo: context.repo.repo,
66-
tag_name: "v${{ steps.py_version.outputs.version }}",
67-
tag_commitish: "${{ github.sha }}"
68-
})
57+
- name: Create Release
58+
if: ${{ github.ref == 'refs/heads/main' }}
59+
uses: actions/github-script@v7
60+
with:
61+
github-token: ${{ github.token }}
62+
script: |
63+
github.rest.repos.createRelease({
64+
owner: context.repo.owner,
65+
repo: context.repo.repo,
66+
tag_name: "v${{ steps.py_version.outputs.version }}",
67+
tag_commitish: "${{ github.sha }}"
68+
})

0 commit comments

Comments
 (0)