Refactor TestOrbit #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker - Build, Lint, and Test | |
on: | |
push: | |
branches: [main, "v*"] | |
pull_request: | |
branches: [main, "v*"] | |
jobs: | |
build-lint-test: | |
runs-on: ubuntu-latest | |
env: | |
IMAGE_TAG: ${{ github.sha }} | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v3 | |
- uses: jpribyl/[email protected] | |
continue-on-error: true | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
install: true | |
- name: Build | |
run: docker build --load -t thor:$IMAGE_TAG . | |
- name: Lint | |
run: docker run -i thor:$IMAGE_TAG pre-commit run --all-files | |
- name: Test | |
run: docker run -i thor:$IMAGE_TAG pytest . --cov |