name: Tests on: [push, pull_request] jobs: test: runs-on: ubuntu-16.04 steps: - uses: actions/checkout@v2 - name: Build docker image run: docker build -t rednose . - name: Static analysis run: | docker run rednose bash -c "git init && git add -A && pre-commit run --all" - name: Unit Tests run: docker run rednose bash -c "cd /project/rednose/examples; python -m unittest discover"