Add pytest action

This commit is contained in:
Kinsteen
2023-02-25 15:03:15 +01:00
parent 47697fc5d9
commit 8d251cec8e
+31
View File
@@ -0,0 +1,31 @@
on:
push:
branches: [main]
pull_request:
name: Pytest
jobs:
pytest-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Ubuntu dependencies
run: |
sudo apt update
sudo apt install -y libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0
sudo apt install -y libcurl4-openssl-dev libssl-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -r requirements.txt
pip install -r requirements.dev.txt
pip install pycairo
pip install PyGObject
- name: Test with pytest
run: |
pip install pytest
pytest bottles