Skip to content

run tests after checking #8

run tests after checking

run tests after checking #8

---
name: CI pipeline
on:
workflow_dispatch:
push:
branches:
- 'v4'
env:
PROJECT_NAME: soda-core
jobs:
check:
name: pre-commit
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Run pre-commit
uses: pre-commit/[email protected]
continue-on-error: true
test:
runs-on: ubuntu-24.04
needs: [check]
services:
postgres:
image: "postgres:15.10-alpine3.21"
env:
POSTGRES_USER: soda_test
POSTGRES_DB: soda_test
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
strategy:
fail-fast: false
matrix:
python-version:
- "3.10"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
python -m venv .venv
source .venv/bin/activate
pip install pytest python-dotenv
pip install -e soda-core
pip install -e soda-postgres
python -m pytest
release:
runs-on: ubuntu-24.04
needs: [test]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Release soda-core v4
run: |
python -m venv .venv
source .venv/bin/activate
pip install tbump
tbump --only-patch 4.0.0dev${GITHUB_RUN_NUMBER}