-
Notifications
You must be signed in to change notification settings - Fork 42
39 lines (37 loc) · 1.16 KB
/
sdk.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: SDK
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
sdk-with-server:
runs-on: ubuntu-latest
env:
DOCKERIZE_VERSION: "v0.7.0"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: "freedomofpress/securedrop"
path: "securedrop-server"
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Start server in background
run: |
cd securedrop
NUM_SOURCES=5 make dev &
- name: Install dependencies
run: |
wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz &&
sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz &&
rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
pip install poetry==1.6.1
- name: Wait for server
run: dockerize -wait http://127.0.0.1:8080 -timeout 30m
- name: Run tests without VCR cassettes
run: |
cd client
poetry install --no-ansi
rm tests/sdk/data/*.yml
make test