Skip to content

Merge pull request #74 from grillazz/69-switch-to-pymongo-for-async #125

Merge pull request #74 from grillazz/69-switch-to-pymongo-for-async

Merge pull request #74 from grillazz/69-switch-to-pymongo-for-async #125

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.13" ]
env:
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
ENVIRONMENT: test
TESTING: 0
UP: up
DOWN: down
WEB_SERVER: web_server
MONGODB_HOST: 127.0.0.1
MONGODB_PORT: 27017
MONGODB_USER: farmer
MONGODB_PASSWORD: tractor
MONGODB_DATABASE: greenhouse
MONGODB_COLLECTION: greens
MONGODB_TEST: farmland
MONGODB_PARAMS: ?authSource=admin&authMechanism=SCRAM-SHA-1&retryWrites=true&w=majority
services:
mongodb:
image: mongo:7.0.8
env:
MONGO_INITDB_DATABASE: greenhouse
MONGO_INITDB_ROOT_USERNAME: farmer
MONGO_INITDB_ROOT_PASSWORD: tractor
ports:
- 27017:27017
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Test with python ${{ matrix.python-version }}
run: uv run --frozen pytest