-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 1.01 KB
/
Aufgabe3_test.yml
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Aufgabe3_test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.x' ]
name: Python ${{ matrix.python-version }} sample
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- run: python tests/Aufgabe3_test.py > test-output.txt
- run: echo ::set-output name=result::$(grep "Yes" test-output.txt | wc -l)
id: test
shell: bash
- run: exit 1
if: steps.test.outputs.result != '1'