- Head to DropBox Sign In/ Create account and then click on this link DropBox Developer Page
Alternate Link : https://www.dropbox.com/developers/documentation
- Click on App Console
- Click on Create App
- Click Full Dropbox
- Give any name to app and Click create app
This token is to be shared with participants. This works as a login access key for the competetion.
- Create a File Known as ποΈ "IO.yaml" for all the Input / Output Test Cases
- The File should Look like this
inputs:
input1:
1
input2:
2
input3:
3
input4:
4
input5:
5
outputs:
output1:
2
output2:
3
output3:
4
output4:
5
output5:
6
- Upload this to the Root Directory of Drop Box and done π!
- Send the OATH token to participants - this works like an access token for the workshop.
- In GitHub Repo open Settings/Secrets and click on add a Secret
- Name of the secret should be OATH and value should be the access token which the organizer gave you!
Example:
This should look like this.
-
Now its time to start coding! Clone your repo and start working on the problem.
-
Supported Programming Languages
python, java, c++, c
-
Create a file program.extension - supported extension
.c .cpp .java .py
NOTE: for java Class name should be Main
-
After Coding is done create a file in repo ποΈ "lang.yaml"
-
Add the below code.
language:
python3
- Replace the name of Programming Language in the above code as follows.
python - write python3
java - write java
c++ - write cpp
c - write c
No language other than above are supported!
-
Commit the code and push
-
Delete everything and paste the below code
name: Evaluation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Results
uses: jainal09/strivio@Production
with:
oath: ${{ secrets.oath }}
Click on start-commit
-
Click on your last commit, click build, wait for the Build jainal09/strivio@Production to turn green βοΈ and after that click on Results π€
-
Check if your code passed all the Test Case βοΈ or β
Success Full Build with all Test Case Passed
Build Failed as Code Didn't Passed all the Test Cases
Sample Test Repo - https://github.com/jainal09/strivio-in-action
Done! thats how you can host coding competetion on GitHub like Hackerrank etc
Docker Hub - https://hub.docker.com/repository/docker/jainal09/strivio