Skip to content

Commit

Permalink
Update README.md (#8)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Implement hidden tests a different way

---------

Co-authored-by: Patrick Creighton <[email protected]>
  • Loading branch information
DFriend01 and patrick-5546 authored Sep 10, 2023
1 parent e216d0b commit 7c6685e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 68 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/c-cpp-hidden.yml

This file was deleted.

17 changes: 7 additions & 10 deletions .github/workflows/hidden-tests.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
name: Hidden Tests

on:
workflow_call:
workflow_dispatch:
inputs:
# The repository name: ${{ github.repository }}
repository:
description: '<owner>/<repository>'
default: 'UBCSailbot/software-quiz'
required: true
type: string
# Run C/C++ tests
cutest:
description: 'check to run cutest'
default: false
required: false
type: boolean
# Run python tests
pytest:
description: 'check to run pytest'
default: false
required: false
type: boolean
secrets:
# Token to access solutions repository
token:
required: false

jobs:
cutest:
Expand All @@ -39,7 +36,7 @@ jobs:
with:
path: 'sol'
repository: 'UBCSailbot/software-quiz-sample-solution'
token: ${{ secrets.token }}
token: ${{ secrets.GH_TOKEN }}

- name: Copy solutions to src
run: cp sol/c-cpp/test_standard_calc.cpp src/c-cpp
Expand All @@ -66,7 +63,7 @@ jobs:
with:
path: 'sol'
repository: 'UBCSailbot/software-quiz-sample-solution'
token: ${{ secrets.token }}
token: ${{ secrets.GH_TOKEN }}

- name: Copy solutions to src
run: cp sol/python/test_standard_calc.py src/python
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/python-hidden.yml

This file was deleted.

11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,16 @@ You may use any resources you find, but must complete the quiz individually. Goo
1. Complete the functions in `c-cpp/standard_calc.cpp`
2. Add unit tests in `c-cpp/test_standard_calc.cpp` to verify your implementations
* See the [C/C++ Notes](#cc-notes) section below for more details
3. *Bonus (Optional)*: pass the continuous integration tests on GitHub
3. Pass the continuous integration tests on GitHub *(Optional)*
- Python: runs `flake8 . --count --max-complexity=10 --max-line-length=127 --statistics` and `pytest` successfully
- `flake8` outputs 0 on success
- References that you may find helpful: [Flake8](https://flake8.pycqa.org/en/latest/), [PyTest](https://docs.pytest.org/en/6.2.x/getting-started.html)
- C/C++: runs `make` successfully
- You can find the results in the Actions tab on GitHub: [viewing your workflow results](https://docs.github.com/en/actions/quickstart#viewing-your-workflow-results).
- Hidden tests
- Enable by asking your email contact to add the required repository secret
- Run Python solution tests [here](https://github.com/UBCSailbot/software-quiz/actions/workflows/python-hidden.yml) and C/C++ solution tests [here](https://github.com/UBCSailbot/software-quiz/actions/workflows/c-cpp-hidden.yml)
- Once the repository secret has been added, the Tests Prerequisites Check job should pass
4. Submit the completed quiz
4. Hidden tests: You can test your solution against our hidden tests *(Optional)*
- In the [template repository's Hidden Tests action](https://github.com/UBCSailbot/software-quiz/actions/workflows/hidden-tests.yml),
click **Run workflow**, enter your repository identifier, select the hidden tests you want to run, then click **Run workflow**
5. Submit the completed quiz
- GitHub: send us the link to your repository, ensuring that it is public
- ZIP file: zip the quiz and send it to us

Expand Down

0 comments on commit 7c6685e

Please sign in to comment.