-
Notifications
You must be signed in to change notification settings - Fork 36
47 lines (45 loc) · 1.38 KB
/
autotests-custom.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Copyright Quadrivium LLC
# All Rights Reserved
# SPDX-License-Identifier: Apache-2.0
#
name: New Autotests Pipeline
on:
workflow_dispatch:
push:
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
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 }}
ALICE_ED: ${{ secrets.ALICE_ED }}