mirror of
https://github.com/bottlesdevs/Bottles.git
synced 2026-10-17 06:00:59 +08:00
Add pytest action
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user