Skip to content

Refactor/python docstrings for dummy estimator #555

Refactor/python docstrings for dummy estimator

Refactor/python docstrings for dummy estimator #555

name: build-and-test
on:
pull_request:
types: [opened, synchronize, reopened, edited]
branches:
- develop
jobs:
build-and-run-tests:
runs-on: ubuntu-22.04
concurrency: ci-${{github.ref}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build
uses: docker/build-push-action@v4
id: built-image
with:
context: .
push: false
load: true
tags: estimators-lib:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Run Sage doctests
run: make docker-test
- name: Run KAT and doctests
run: make docker-pytest