feat: Add integration tests for simple-ca functionality and implement shell script for CA operations
/ test-shell (push) Successful in 17s
/ test-python (push) Successful in 23s

This commit is contained in:
2026-05-24 21:04:00 +02:00
parent cb858a96b1
commit 04d8dab9bc
4 changed files with 544 additions and 207 deletions
+9 -12
View File
@@ -4,7 +4,7 @@ on:
- 'simple-ca.sh'
- 'simple-ca.py'
- 'run-tests.sh'
- 'src/simple-ca/**'
- 'test_simple_ca.py'
- '.gitea/workflows/test.yaml'
jobs:
@@ -19,20 +19,17 @@ jobs:
with:
python-version: '3.x'
- name: Run python tests
run: ./run-tests.sh python
- name: Install pytest
run: pip install pytest
test-go:
- name: Run python tests
run: python3 -m pytest test_simple_ca.py -v
test-shell:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache-dependency-path: src/simple-ca/go.sum
- name: Run go tests
run: ./run-tests.sh go
- name: Run shell tests
run: bash run-tests.sh