Skip to content

Add user and admin routes #17

Add user and admin routes

Add user and admin routes #17

Workflow file for this run

name: Unit tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
env:
MONGODB_URI: mongodb://localhost:27017
jobs:
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up python version ${{ matrix.python-version }} for testing
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install python test dependencies
run: |
pip install .[test]
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.12.0
with:
mongodb-version: latest
- name: Test with pytest
run: |
pytest ./test/