Skip to content

Commit

Permalink
Add ci workflow
Browse files Browse the repository at this point in the history
This is a direct copy from repository playground (so will need some changes to work).
  • Loading branch information
jku committed Jul 18, 2023
1 parent 5633760 commit e5080f2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint & test

on:
push:
pull_request:

permissions: {}

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c

- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
with:
python-version: "3.11"
cache: 'pip'

- name: Install system dependencies for e2e test
run: |
sudo apt-get install libfaketime softhsm2
echo "PYKCS11LIB=/usr/lib/softhsm/libsofthsm2.so" >> $GITHUB_ENV
- name: Install tox
run: python -m pip install tox

- name: Lint
working-directory: playground
run: tox -m lint

- name: Repository unit tests
working-directory: playground
run: tox -e test-repo

- name: End-to-end tests
working-directory: playground
run: tox -e test-e2e

0 comments on commit e5080f2

Please sign in to comment.