-
Notifications
You must be signed in to change notification settings - Fork 12
33 lines (28 loc) · 928 Bytes
/
tests.yaml
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
name: tests
on:
pull_request:
push:
branches: main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pdftotext dependencies
run: |
sudo apt-get update && sudo apt-get -y install build-essential libpoppler-cpp-dev pkg-config
- name: Setup Python & Poetry
uses: ./.github/actions/setup-python-poetry
with:
python-version: "3.11"
poetry-version: "1.6.1"
- name: Install git crypt/john & run tests
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew fetch git-crypt & brew fetch john-jumbo
brew install git-crypt john-jumbo
echo '${{ secrets.GIT_CRYPT_KEY }}' | base64 --decode > /tmp/git-crypt-key
git-crypt unlock /tmp/git-crypt-key
rm /tmp/git-crypt-key
poetry run task test