Skip to content

QEmu test

QEmu test #331

Workflow file for this run

name: ci
on:
push:
branches:
- 'main'
pull_request: {}
# allow manual runs:
workflow_dispatch: {}
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/tillitis/tkey-builder:5rc2
steps:
- name: checkout
uses: actions/checkout@v4
with:
# fetch-depth: 0
persist-credentials: false
- name: fix
# https://github.com/actions/runner-images/issues/6775
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: make
run: make tkey-ssh-agent -j
- name: make windows
run: make windows
- name: Cache linux binary
uses: actions/cache@v4
with:
path: tkey-ssh-agent
key: build-${{ github.run_number }}-${{ github.sha }}-${{ github.run_attempt }}
qemu-test:
needs: build
runs-on: ubuntu-latest
container:
image: ghcr.io/tillitis/tkey-qemu-tk1-24.03:alpha1
steps:
- name: checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Retrieve binary from cache
uses: actions/cache@v4
with:
path: tkey-ssh-agent
key: build-${{ github.run_number }}-${{ needs.build.outputs.commit_sha }}-${{ github.run_attempt }}
fail-on-cache-miss: true
- name: Install pipenv
run: |
apt-get update
apt-get install -y --no-install-recommends pipenv
- name: Install test dependencies
working-directory: test
run: |
pipenv install --deploy
- name: Run tests
working-directory: test
run: |
pipenv run pytest -v
reuse-compliance-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v4
with:
args: lint