Skip to content

Commit

Permalink
ci(gha): pipelines for keri ballot verifier service (#548)
Browse files Browse the repository at this point in the history
* build: remove compose file

* ci(gha): keri-ballot-verifier tests and docker publish

* ci(gha): install libsodium on self-hosted

* ci(gha): revert docker publish (changing to earthly soon)

* ci(gha): only run tests on push to main/develop
  • Loading branch information
iFergal authored Jul 19, 2024
1 parent 848dafc commit 45b7354
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Run Tests

on:
push:
branches:
- main
- develop
pull_request:
types: [ opened, synchronize ]
workflow_dispatch:
Expand Down Expand Up @@ -47,3 +50,29 @@ jobs:
BRANCH: gh-pages
folder: ./backend-services/${{ matrix.service }}/build/reports/jacoco/test/html
target-folder: ${{ matrix.service }}/coverage-report/

pytest:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.12.2
uses: actions/setup-python@v2
with:
python-version: 3.12.2

- name: Install libsodium
run: sudo apt-get install -y libsodium23

- name: Install dependencies
working-directory: ./backend-services/keri-ballot-verifier
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Run tests
working-directory: ./backend-services/keri-ballot-verifier
run: |
pytest tests/
13 changes: 0 additions & 13 deletions backend-services/keri-ballot-verifier/docker-compose.yaml

This file was deleted.

0 comments on commit 45b7354

Please sign in to comment.