Skip to content

Upgrade adam_core to https://github.com/B612-Asteroid-Institute/adam_… #273

Upgrade adam_core to https://github.com/B612-Asteroid-Institute/adam_…

Upgrade adam_core to https://github.com/B612-Asteroid-Institute/adam_… #273

name: docker - Build Lint and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-lint-test:
runs-on: ubuntu-latest
env:
IMAGE_TAG: ${{ github.sha }}
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- 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