Merge securedrop-sdk #11
Workflow file for this run
This file contains 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: SDK | |
on: [push, pull_request] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
sdk-with-server: | |
runs-on: ubuntu-latest | |
container: debian:bullseye | |
env: | |
DOCKERIZE_VERSION: "v0.7.0" | |
steps: | |
- name: Install dependencies | |
run: | | |
apt-get update && apt-get install --yes git make python3-pip podman wget | |
pip install poetry==1.6.1 | |
wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && | |
tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && | |
rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: "freedomofpress/securedrop" | |
path: "securedrop-server" | |
- name: Run tests without VCR cassettes | |
run: | | |
# Start the server in the background | |
NUM_SOURCES=5 make -C securedrop-server dev & | |
# Wait for it to be up | |
dockerize -wait http://127.0.0.1:8080 -timeout 30m | |
# Install deps and run tests | |
cd client | |
poetry install --no-ansi | |
rm tests/sdk/data/*.yml | |
make test |