Skip to content

chore: Update copier template to v0.5.1 #131

chore: Update copier template to v0.5.1

chore: Update copier template to v0.5.1 #131

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
# Automatically stop old builds on the same branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
name: Lint
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up pixi
<<<<<<< before updating

Check failure on line 24 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
environments: default lint
- name: pre-commit
run: pixi run pre-commit-run --color=always --show-diff-on-failure
||||||| last update
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
with:
environments: default lint
- name: pre-commit
run: pixi run pre-commit-run --color=always --show-diff-on-failure
=======
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
- name: Run linting
run: pixi run lint
env:
CLICOLOR_FORCE: 1
>>>>>>> after updating
pytest:
timeout-minutes: 30
runs-on: ubuntu-latest
services:
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
env:
ACCEPT_EULA: Y
SA_PASSWORD: Passw0rd
ports:
- 1433:1433
strategy:
fail-fast: false
matrix:
<<<<<<< before updating
environment: [py311, py312, py313]
database: [sqlite, mssql, duckdb]
include:
- database: sqlite
connection-string: sqlite:///test.sqlite3
- database: mssql
connection-string: mssql+pyodbc://sa:Passw0rd@localhost:1433/master?driver=ODBC+Driver+18+for+SQL+Server&Encrypt=no
- database: duckdb
connection-string: duckdb:///test.duckdb
||||||| last update
environment:
- py311
- py312
- py313
os:
- ubuntu-latest
- macos-latest
- windows-latest
=======
environment:
- py311
- py312
- py313
- py314
os:
- ubuntu-latest
- macos-latest
- windows-latest
>>>>>>> after updating
steps:
- name: Checkout branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Install msodbcsql18
if: matrix.database == 'mssql'
run: sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y
- name: Set up pixi
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
environments: ${{ matrix.environment }}
<<<<<<< before updating
activate-environment: true
- name: Install repository
run: pixi run postinstall
||||||| last update
- name: Install repository
run: pixi run -e ${{ matrix.environment }} postinstall
=======
>>>>>>> after updating
- name: Run pytest
run: pixi run test-coverage --color=yes
env:
DB_CONNECTION_STRING: ${{ matrix.connection-string }}