mirror of
https://github.com/bottlesdevs/Bottles.git
synced 2026-10-28 23:14:14 +08:00
29 lines
788 B
YAML
29 lines
788 B
YAML
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 -r requirements.txt
|
|
pip install -r requirements.dev.txt
|
|
- name: Test with pytest
|
|
run: |
|
|
python -m pytest --version
|
|
python -m pytest bottles
|