Refactor test workflow

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-10-09 17:45:49 +02:00
parent 2f177eb8df
commit 11a3472941
6 changed files with 41 additions and 39 deletions

View File

@@ -45,6 +45,9 @@ jobs:
test:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
suite: ["pkcs11", "pytest"]
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
@@ -59,24 +62,5 @@ jobs:
run: |
cd artifacts
docker load -q -i docker-image.tar
- name: Test PCSC (pytest)
run: ./tests/run-test-in-docker.sh
test_pkcs11:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Retrieve saved image
uses: actions/download-artifact@v2
with:
name: docker-artifact
path: artifacts
- name: Load image
run: |
cd artifacts
docker load -q -i docker-image.tar
- name: Test PKCS11
run: ./tests/run-test-pkcs11-in-docker.sh
- name: Test ${{ matrix.suite }}
run: ./tests/run-test-in-docker.sh ${{ matrix.suite }}