Skip to content

Commit

Permalink
Edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein committed Oct 30, 2024
1 parent 503d712 commit 0cd55b3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: CI
on: [push]

defaults:
run:
shell: bash -el {0}

jobs:

pre-commit-checks:
name: "Linux - pre-commit checks"
name: "Pre-commit checks"
runs-on: ubuntu-latest
steps:
- name: Checkout branch
Expand All @@ -17,14 +21,13 @@ jobs:
run: pixi run pre-commit-run --color=always --show-diff-on-failure

unit-tests:
name: "Unit tests - ${{ matrix.OS }} - Python ${{ matrix.PYTHON_VERSION }}"
name: "Unit tests"
runs-on: ubuntu-latest
env:
CI: True
strategy:
fail-fast: true
matrix:
# PYTHON_VERSION: ['3.9', '3.10', '3.11', '3.12', '3.13']
env: ["py39", "py310", "py311", "py312", "py313"]
os: ['ubuntu-latest', 'windows-latest']
steps:
Expand All @@ -34,20 +37,19 @@ jobs:
uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.env }}
- name: Install repository and generate code coverage report
- name: Run unit tests
run: |
pixi run -e ${{ matrix.env }} postinstall
pixi run -e ${{ matrix.env }} pytest test/unit
linux-integration_tests-sqlserver:
name: "Linux - integration tests - Python ${{ matrix.PYTHON_VERSION }} - mssql"
name: "Integration tests"
runs-on: ubuntu-latest
env:
CI: True
strategy:
fail-fast: false
matrix:
# PYTHON_VERSION: ['3.9', '3.10', '3.11', '3.12', '3.13']
env: ["py39", "py310", "py311", "py312", "py313"]
services:
DB:
Expand All @@ -65,15 +67,13 @@ jobs:
with:
environments: ${{ matrix.env }}
- name: Install msodbcsql17 driver
shell: bash -l {0}
run: |
wget https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/m/msodbcsql17/msodbcsql17_17.10.1.1-1_amd64.deb
ACCEPT_EULA=Y sudo apt install ./msodbcsql17_17.10.1.1-1_amd64.deb --allow-downgrades
- name: Wait for SQL Server
timeout-minutes: 1
run: until docker logs "${{ job.services.db.id }}" 2>&1 | grep -q "SQL Server is now ready"; do sleep 10; done
- name: Run Integration Tests
shell: bash -l {0}
- name: Run integration tests
run: |
pixi run -e ${{ matrix.env }} postinstall
pixi run -e ${{ matrix.env }} pytest --backend=mssql tests/integration

0 comments on commit 0cd55b3

Please sign in to comment.