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

Add testing of output #6

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/sandbox_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: sandbox_ubuntu
"on":
push:
branches:
- master
pull_request:
branches:
- master

jobs:
maven-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
java: [11, 13]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- name: Build it with Maven
run: mvn -B test
- name: Test it
run: ./run.sh 7 | python3 test.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
---
name: sandbox
name: sandbox_windows
"on":
push:
branches:
- master
pull_request:
branches:
- master

jobs:
maven-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest]
java: [11, 13]
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test_str = input()
print(f"The output is:\n{test_str}")
assert test_str == "7th Fibonacci number is 13"