mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
feat: run pytest for PRs
This commit is contained in:
parent
c3f10df277
commit
fc8214f3fe
29
.github/workflows/pytest.yml
vendored
Normal file
29
.github/workflows/pytest.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Run Pytest on Pull Request
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main # Change this to your default branch if it's not '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/
|
@ -6,3 +6,5 @@ scikit-learn==1.5.2
|
|||||||
deap==1.4.1
|
deap==1.4.1
|
||||||
joblib==1.4.2
|
joblib==1.4.2
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
|
pytest==8.3.3
|
||||||
|
pytest-cov==5.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user