Skip to content

Commit f9b5ec1

Browse files
committed
Add GitHub workflows for integration tests, unit tests, and Docker image publishing
1 parent 6b55069 commit f9b5ec1

File tree

3 files changed

+21
-25
lines changed

3 files changed

+21
-25
lines changed

.github/workflows/integration-tests-sqlserver.yml renamed to .github/workflows/patched-integration-tests-sqlserver.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
---
2-
name: Integration tests on SQL Server
2+
name: Patched Integration tests on SQL Server
33
on: # yamllint disable-line rule:truthy
44
workflow_dispatch:
55
push:
66
branches:
7-
- master
7+
- patched
88
- v*
99
pull_request:
1010
branches:
11-
- master
11+
- patched
1212
- v*
13-
schedule:
14-
- cron: '0 22 * * 0'
1513

1614
jobs:
17-
integration-tests-sql-server:
15+
patched-integration-tests-sql-server:
1816
name: Regular
1917
strategy:
2018
matrix:
21-
python_version: ["3.9", "3.10", "3.11", "3.12"]
22-
msodbc_version: ["17", "18"]
23-
sqlserver_version: ["2017", "2019", "2022"]
24-
collation: ["SQL_Latin1_General_CP1_CS_AS", "SQL_Latin1_General_CP1_CI_AS"]
19+
python_version: ["3.11", "3.12", "3.13"]
20+
msodbc_version: ["18"]
21+
sqlserver_version: ["2017", "2022"]
22+
collation: ["SQL_Latin1_General_CP1_CS_AS"]
2523
runs-on: ubuntu-latest
2624
container:
2725
image: ghcr.io/${{ github.repository }}:CI-${{ matrix.python_version }}-msodbc${{ matrix.msodbc_version }}

.github/workflows/publish-docker.yml renamed to .github/workflows/patched-publish-docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
2-
name: Publish Docker images for CI/CD
2+
name: Patched Publish Docker images for CI/CD
33
on: # yamllint disable-line rule:truthy
44
push:
55
paths:
66
- 'devops/**'
77
- '.github/workflows/publish-docker.yml'
88
branches:
9-
- 'master'
9+
- 'patched'
1010

1111
jobs:
12-
publish-docker-client:
12+
patched-publish-docker-client:
1313
strategy:
1414
matrix:
15-
python_version: ["3.9", "3.10", "3.11", "3.12"]
16-
docker_target: ["msodbc17", "msodbc18"]
15+
python_version: ["3.11", "3.12", "3.13"]
16+
docker_target: ["msodbc18"]
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: read
@@ -40,10 +40,10 @@ jobs:
4040
target: ${{ matrix.docker_target }}
4141
tags: ghcr.io/${{ github.repository }}:CI-${{ matrix.python_version }}-${{ matrix.docker_target }}
4242

43-
publish-docker-server:
43+
patched-publish-docker-server:
4444
strategy:
4545
matrix:
46-
mssql_version: ["2017", "2019", "2022"]
46+
mssql_version: ["2017", "2022"]
4747
runs-on: ubuntu-latest
4848
permissions:
4949
contents: read

.github/workflows/unit-tests.yml renamed to .github/workflows/patched-unit-tests-patched.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
---
2-
name: Unit tests
2+
name: Patched Unit tests
33
on: # yamllint disable-line rule:truthy
44
workflow_dispatch:
55
push:
66
branches:
7-
- master
7+
- patched
88
- v*
99
pull_request:
1010
branches:
11-
- master
11+
- patched
1212
- v*
13-
schedule:
14-
- cron: '0 22 * * 0'
1513

1614
jobs:
17-
unit-tests:
15+
patched-unit-tests:
1816
name: Unit tests
1917
strategy:
2018
matrix:
21-
python_version: ["3.9", "3.10", "3.11", "3.12"]
19+
python_version: ["3.11", "3.12", "3.13"]
2220
runs-on: ubuntu-latest
2321
permissions:
2422
contents: read
@@ -27,7 +25,7 @@ jobs:
2725
image: ghcr.io/${{ github.repository }}:CI-${{ matrix.python_version }}-msodbc18
2826
credentials:
2927
username: ${{ github.actor }}
30-
password: ${{ secrets.github_token }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
3129
steps:
3230

3331
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)