mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-07-14 15:56:54 +00:00
30 lines
626 B
YAML
30 lines
626 B
YAML
name: Run Pytest on Pull Request
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt install -y libmariadb3 libmariadb-dev
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run Pytest
|
|
run: |
|
|
python -m pytest -vs --cov modules --cov-report term-missing tests/
|