Sphinx v2 support #81
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 liboprf sphinx dependency | |
run: | | |
sudo apt update | |
sudo apt install -y libsodium-dev pkgconf # build-essential git | |
git clone https://github.com/stef/liboprf/ | |
cd liboprf/src/noise_xk | |
git checkout v0.7.0 | |
sudo mkdir -p /usr/include/oprf/ | |
sudo PREFIX=/usr make install | |
cd .. | |
sudo PREFIX=/usr make install | |
sudo ldconfig | |
rm -rf tests | |
cd ../python | |
pip3 install --upgrade . | |
rm -rf tests | |
- 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 |