Skip to content

Create testing workflow #9

Create testing workflow

Create testing workflow #9

Workflow file for this run

name: Run Databass tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
DB_NAME: databass
PG_USER: databass
PG_PASSWORD: databass
PG_HOSTNAME: databass
PG_PORT: 1234
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v3
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
cd src
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
cd src
pytest