Skip to content

Commit

Permalink
maybe-working ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBuchanan314 committed Dec 2, 2024
1 parent ad4120f commit faadf4c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Run tests
run-name: ${{ github.actor }} is running tests
on: push
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install millipds python module
run: |
python3 -m pip install .
- name: Run the tests
run: |
./tests/run_integration_test.sh
21 changes: 21 additions & 0 deletions tests/run_integration_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

set -euxo pipefail

rm -rf ./data

millipds init localhost:8123
millipds account create did:plc:bwxddkvw5c6pkkntbtp2j4lx local.dev.retr0.id --unsafe_password="lol"

millipds run &
PDS_PID=$!

# wait for server to start up
until curl -s http://localhost:8123/
do
echo "waiting for service startup"
sleep 0.05
done

python3 tests/integration_test.py
kill $PDS_PID

0 comments on commit faadf4c

Please sign in to comment.