diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ae9cbb..f8957bb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,11 +4,12 @@ on: [push] jobs: pytest: runs-on: ubuntu-latest + container: ubuntu:24.04 steps: - uses: actions/checkout@v3 - name: Install dependencies - run: sudo apt install -y libpcap-dev libtss2-dev + run: apt update && apt install -y libpcap-dev libtss2-dev gcc - uses: actions/setup-python@v5 with: @@ -23,6 +24,10 @@ jobs: - uses: syphar/restore-pip-download-cache@v1 if: steps.cache-virtualenv.outputs.cache-hit != 'true' + - run: for lib in tss2-esys tss2-tctildr tss2-rc tss2-mu tss2-fapi tss2-policy tss2-tcti-spi-helper; do echo "$lib=$(pkg-config --modversion $lib 2>/dev/null || echo -)"; done + - run: for lib in tss2-esys tss2-tctildr tss2-rc tss2-mu tss2-fapi tss2-policy tss2-tcti-spi-helper; do pkg-config --cflags $lib 2>/dev/null || true; done + - run: ls -la /usr/include/tss2 + # the package installation will only be executed when the # requirements-files have changed. - run: pip install --upgrade pip && pip install . && pip install pytest autoflake black isort cryptography==3.4.8 tpm2_pytss