diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..5583b41 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + runs-on: python + defaults: + run: + working-directory: services/api + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: pip install -e ".[dev]" + + - name: Lint + run: ruff check app/ tests/ + + - name: Run tests + run: python -m pytest tests/ -v