ci: publish with web frontend #62
Workflow file for this run
This file contains hidden or 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: Run Tests | |
| on: | |
| push: | |
| branches: | |
| - refactoring-v3-mvp | |
| pull_request: | |
| branches: | |
| - refactoring-v3-mvp | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Docker | |
| uses: docker/setup-docker-action@v4 | |
| - name: Install Docker Buildx | |
| run: | | |
| docker run --rm --privileged multiarch/qemu-static --reset -p yes | |
| docker buildx install | |
| docker buildx create --use | |
| - name: Cache Docker layers | |
| uses: actions/cache@v3 | |
| with: | |
| path: /tmp/.buildx-cache | |
| key: ${{ runner.os }}-docker-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-docker- | |
| - name: Build Docker image | |
| run: | | |
| docker build -t test-image --cache-from type=local,dest=/tmp/.buildx-cache --cache-to type=local,dest=/tmp/.buildx-cache . | |
| - name: Run tests in Docker | |
| run: | | |
| docker run test-image sh -c "python -m pip install pytest && python -m pytest -v" |