Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dops 2187/autotests #1487

Merged
merged 13 commits into from
Feb 13, 2023
42 changes: 42 additions & 0 deletions .github/workflows/autotests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Autotests

on:
repository_dispatch:
types: [ autotests ]

jobs:
autotests:
runs-on: ubuntu-latest
container: soramitsu/kagome-autotests:latest
steps:
- name: Set commit status as pending
uses: myrotvorets/set-commit-status-action@7d7fe9a321fbe56a1339449c19422e95a025c65a
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: pending
context: Autotests
sha: ${{ github.sha }}
- name: Run autotests
working-directory: /kagome-autotests
run: python3 -m pytest --alluredir=./allure_reports
shell: sh
- name: Set commit status as failure
if: failure()
uses: myrotvorets/set-commit-status-action@7d7fe9a321fbe56a1339449c19422e95a025c65a
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: failure
context: Autotests
sha: ${{ github.sha }}
- name: Set commit status as success
if: success()
uses: myrotvorets/set-commit-status-action@7d7fe9a321fbe56a1339449c19422e95a025c65a
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: success
context: Autotests
sha: ${{ github.sha }}
env:
KAGOME_S1: ${{ secrets.KAGOME_S1 }}
SUBSTRATE_S2: ${{ secrets.SUBSTRATE_S2 }}
BOB: ${{ secrets.BOB }}