-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (38 loc) · 1012 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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