-
Notifications
You must be signed in to change notification settings - Fork 39
43 lines (40 loc) · 1.3 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
40
41
42
43
name: SDK
on:
- merge_group
- push
- pull_request
# Only build for latest push/PR unless it's main or release/
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) }}
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.11"
- name: Install dependencies
run: |
pip install poetry==1.6.1
- name: Run tests without VCR cassettes
run: |
# Start the server in the background
NUM_SOURCES=5 LOADDATA_ARGS="--random-file-size 3" make -C securedrop-server dev &
# And install deps
poetry -C client install --no-ansi
# Wait for server to come up
echo "Polling with curl --silent until the server is up..."
while ! curl --silent --fail --output /dev/null http://127.0.0.1:8080; do sleep 5; done
# Run tests
make -C client regenerate-sdk-cassettes