Skip to content

Flexible templates and fixes (#14) #48

Flexible templates and fixes (#14)

Flexible templates and fixes (#14) #48

Workflow file for this run

name: "Test and build notification scripts."
on:
push:
branches:
- main
tags-ignore:
- '*.*.*'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Run unit tests
run: |
pip install -r requirements.tests.txt
pytest tests/ --junitxml=test-report.xml -v
- name: Multi-arch docker image build prerequired
run: sudo docker run --privileged linuxkit/binfmt:v0.7
- name: Build and deploy on architecture
env:
SIXSQ_DOCKER_USERNAME: ${{ secrets.SIXSQ_DOCKER_USERNAME }}
SIXSQ_DOCKER_PASSWORD: ${{ secrets.SIXSQ_DOCKER_PASSWORD }}
run: ./container-release.sh
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: test-report.xml
notify:
if: always()
name: Post Workflow Status To Slack
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Slack Workflow Notification
uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}}
icon_emoji: ':rocket:'