Pipeline cleanup & refactor
This commit is contained in:
parent
2674858626
commit
827756822d
|
@ -57,25 +57,43 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
which python
|
|
||||||
pip -V
|
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip -V
|
|
||||||
python -V
|
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
if: steps.didkit.outcome == 'success'
|
if: steps.didkit.outcome == 'success'
|
||||||
|
|
||||||
- name: Check correct env vars
|
|
||||||
run: |
|
|
||||||
echo $DOMAIN
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
echo $DOMAIN
|
|
||||||
coverage run manage.py test
|
coverage run manage.py test
|
||||||
coverage report
|
|
||||||
# python manage.py test
|
# python manage.py test
|
||||||
|
#
|
||||||
|
- name: Coverage report
|
||||||
|
run: |
|
||||||
|
coverage report
|
||||||
|
|
||||||
|
end2end-tests:
|
||||||
|
needs: test
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout E2E tests repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: trustchain-oc1-orchestral/IdHub_E2E_testing
|
||||||
|
ref: master
|
||||||
|
token: ${{ secrets.SSIKIT_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
- name: Install Playwright browsers
|
||||||
|
run: |
|
||||||
|
npx playwright install --with-deps
|
||||||
|
|
||||||
|
- name: Run Playwright tests
|
||||||
|
run: |
|
||||||
|
npx playwright test
|
||||||
|
|
||||||
ssikit-tests:
|
ssikit-tests:
|
||||||
needs: test
|
needs: test
|
||||||
|
@ -113,30 +131,6 @@ jobs:
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
python main.py
|
python main.py
|
||||||
|
|
||||||
end2end-tests:
|
|
||||||
needs: test
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: Checkout E2E tests repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: trustchain-oc1-orchestral/IdHub_E2E_testing
|
|
||||||
ref: master
|
|
||||||
token: ${{ secrets.SSIKIT_TOKEN }}
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
|
|
||||||
- name: Install Playwright browsers
|
|
||||||
run: |
|
|
||||||
npx playwright install --with-deps
|
|
||||||
|
|
||||||
- name: Run Playwright tests
|
|
||||||
run: |
|
|
||||||
npx playwright test
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
Loading…
Reference in a new issue