Skip to content

service

service #36

Workflow file for this run

name: CI
on:
push:
pull_request:
types: [ opened, reopened ]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
poetry-version: [ "1.4" ]
os: [ ubuntu-22.04, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Lock dependencies
shell: bash
run: poetry lock
- name: Install dependencies
shell: bash
run: poetry install
- name: Run tests
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt install -y dbus-x11
dbus-launch --exit-with-session poetry run pytest -v
else
poetry run pytest -v
fi