-
-
Notifications
You must be signed in to change notification settings - Fork 88
52 lines (41 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
41
42
43
44
45
46
47
48
49
50
51
52
name: Ubuntu
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-22.04
continue-on-error: true
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install required packages
run: |
pip install 'prospector[with_everything]' defusedxml requests zxcvbn dominate
- name: Prospector
run: make lint
tests:
runs-on: ubuntu-22.04
strategy:
matrix:
magic:
- file-magic
- python-magic
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install required packages
run: |
sudo apt-get install -y gnome-keyring libsodium23 pass python3-setuptools
- name: Install python dependencies
run: |
pip3 install --upgrade pip
pip3 install --upgrade green coverage \
codacy-coverage pyaml defusedxml cryptography pykeepass secretstorage \
zxcvbn jsonpath-ng ${{ matrix.magic }}
- name: Configure password managers
run: |
echo '#!/usr/bin/env bash\necho lpass' | sudo tee /usr/bin/lpass
sudo chmod 755 /usr/bin/lpass
mkdir -p ~/.local/share/keyrings/
cp tests/assets/db/gnome-keyring.keyring ~/.local/share/keyrings/pass-import.keyring
- name: Run the tests
run: dbus-run-session -- make tests