25 lines
493 B
YAML
25 lines
493 B
YAML
|
|
on:
|
||
|
|
push:
|
||
|
|
branches:
|
||
|
|
- "main"
|
||
|
|
pull_request:
|
||
|
|
types: [opened, synchronize, reopened]
|
||
|
|
jobs:
|
||
|
|
test:
|
||
|
|
runs-on: ubuntu-latest
|
||
|
|
steps:
|
||
|
|
- name: Checkout code
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
|
||
|
|
- name: Set up Python
|
||
|
|
uses: actions/setup-python@v5
|
||
|
|
with:
|
||
|
|
python-version: "3.x"
|
||
|
|
|
||
|
|
- name: Install pytest
|
||
|
|
run: pip install pytest
|
||
|
|
|
||
|
|
- name: Run tests
|
||
|
|
working-directory: test
|
||
|
|
run: docker-compose up -d && pytest -v
|