Skip to content

Support multi syntax #6

Support multi syntax

Support multi syntax #6

Workflow file for this run

name: Build & Test
on:
push:
branches-ignore:
- main
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Prepare - Checkout
uses: actions/checkout@v4.0.0
- name: Prepare - Inject short Variables
uses: rlespinasse/github-slug-action@v4.4.1
- name: Test - Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Test - Install dependencies
run: pip install -r requirements.txt
- name: Test - Run tests and collect coverage
run: pytest --cov=utils utils/
- name: Test - Run tests again
run: pytest --cov=utils utils/
- name: Test - Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: code-slide/server
- name: Build - Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build - BUILD
uses: docker/build-push-action@v5
with:
load: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
tags: on-local