-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (38 loc) · 1.39 KB
/
main.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
40
name: tests
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install Python dependencies
run: pip install jeepney cryptography codecov
- name: Clone libsecret repository
run: git clone https://gitlab.gnome.org/GNOME/libsecret.git
- name: Run tests
run: |
dbus-run-session -- coverage run tests/run_tests.py libsecret/libsecret/mock-service-normal.py
dbus-run-session -- coverage run -a tests/run_tests.py libsecret/libsecret/mock-service-only-plain.py
dbus-run-session -- coverage run -a tests/run_tests.py libsecret/libsecret/mock-service-lock.py
- name: Upload reports to Codecov
if: ${{ matrix.python == '3.13' }}
run: codecov
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install mypy and flake8
run: pip install mypy flake8 types-cryptography
- name: Run flake8
run: flake8 --max-line-length=88 .
- name: Run mypy
run: mypy --strict --ignore-missing-imports secretstorage/ tests/