Merge pull request 'Integrate the SSIKit testing suite to the CI/CD pipeline' (#156) from integrate-ssikit-tests into release
Reviewed-on: https://gitea.pangea.org/trustchain-oc1-orchestral/IdHub/pulls/156
This commit is contained in:
commit
11eca46404
|
@ -69,6 +69,41 @@ jobs:
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
python manage.py test
|
python manage.py test
|
||||||
|
|
||||||
|
ssikit-tests:
|
||||||
|
needs: test
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout SSIKit repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: trustchain-oc1-orchestral/ssikit_trustchain
|
||||||
|
submodules: true
|
||||||
|
ref: master
|
||||||
|
# might not be needed
|
||||||
|
token: ${{ secrets.SSIKIT_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install python3-venv (if not already installed)
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install python3 python3-venv python3-pip -y
|
||||||
|
|
||||||
|
- name: Setup Python environment
|
||||||
|
run: |
|
||||||
|
python3 -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
source venv/bin/activate
|
||||||
|
pip install --upgrade pip
|
||||||
|
# Install any additional dependencies required for SSIKit tests here
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Execute SSIKit tests
|
||||||
|
run: |
|
||||||
|
source venv/bin/activate
|
||||||
|
python main.py
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: test
|
needs: test
|
||||||
|
|
Loading…
Reference in New Issue