Files
rspamd-mail-trainer-gitea/.gitea/workflows/ci.yml
T

32 lines
591 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build tooling
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Run tests
run: |
PYTHONPATH=src python -m unittest discover -s tests
- name: Build package
run: |
python -m build