@@ -10,59 +10,59 @@ jobs:
10
10
MYSQL_ALLOW_EMPTY_PASSWORD : yes
11
11
options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
12
12
ports :
13
- - 3306:3306
13
+ - 3306:3306
14
14
postgres :
15
15
image : postgres
16
16
env :
17
17
POSTGRES_USER : postgres
18
18
POSTGRES_PASSWORD : postgres
19
19
POSTGRES_DB : test
20
20
ports :
21
- - 5432:5432
21
+ - 5432:5432
22
22
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
32
32
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
38
38
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
41
41
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/ .
44
44
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 }}
51
51
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)
56
56
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