Skip to content

Remove timeout logic for now #119

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

Closed
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
c38a93f
adapted from Steven's initial python runner
ashishkeshan Feb 22, 2024
9082cbf
Merge pull request #1 from education/initial-adaptation
ashishkeshan Feb 23, 2024
faef7dd
Update Dockerfile
ashishkeshan Feb 23, 2024
e5b6a1c
add print statement
ashishkeshan Feb 23, 2024
0480bc2
just print directory
ashishkeshan Feb 23, 2024
a734e3f
add more prints
ashishkeshan Feb 23, 2024
1a34171
remove print statements
ashishkeshan Feb 27, 2024
21ca8c1
Update action.yml
ashishkeshan Feb 28, 2024
d544bcb
try to print the test name
ashishkeshan Feb 28, 2024
4b3403f
add print statement
ashishkeshan Feb 28, 2024
279eaa7
Update action.yml
ashishkeshan Feb 28, 2024
6aee30f
change how var is referenced
ashishkeshan Feb 28, 2024
ea62858
Update action.yml
ashishkeshan Feb 28, 2024
07fb50e
add max score
ashishkeshan Feb 28, 2024
9ddc301
add print statement
ashishkeshan Feb 29, 2024
5a35420
one more print statement
ashishkeshan Feb 29, 2024
218e3b6
Merge branch 'main' into add-max-score
ashishkeshan Feb 29, 2024
1021459
remove print statements
ashishkeshan Feb 29, 2024
a4880a6
add CI job
ashishkeshan Feb 29, 2024
18e42b8
remove node install step
ashishkeshan Feb 29, 2024
9515f2b
try fixing test
ashishkeshan Feb 29, 2024
d5a467e
set to 0 if max_score not passed in
ashishkeshan Feb 29, 2024
0a142d6
fix path
ashishkeshan Feb 29, 2024
bb579af
Update ci.yml
ashishkeshan Mar 5, 2024
d73863c
Update ci.yml
ashishkeshan Mar 5, 2024
2ec96eb
Update ci.yml
ashishkeshan Mar 5, 2024
5ccbd82
get rid of unused action files
ashishkeshan Mar 5, 2024
d784da5
Merge pull request #2 from education/add-max-score
ashishkeshan Mar 5, 2024
2361424
add all necessary files for open source github repo
ashishkeshan Mar 5, 2024
b86d68e
add release action
ashishkeshan Mar 5, 2024
c89a217
Merge pull request #3 from education/add-auxillary-files
ashishkeshan Mar 5, 2024
9d996f6
Merge branch 'main' into add-release-action
ashishkeshan Mar 5, 2024
8d11644
Update release.yml
ashishkeshan Mar 5, 2024
d6d8512
remove unneeded file
ashishkeshan Mar 5, 2024
f190820
Merge pull request #4 from education/add-release-action
ashishkeshan Mar 6, 2024
af6407d
Update release.yml
ashishkeshan Mar 6, 2024
f4da216
Update release.yml
ashishkeshan Mar 6, 2024
3357e34
Merge pull request #5 from education/fix-release-script
ashishkeshan Mar 6, 2024
4819566
Update README.md
ashishkeshan Mar 7, 2024
64ba396
Merge pull request #6 from education/update-readme
ashishkeshan Mar 13, 2024
5465101
Update action.yml
ashishkeshan Mar 14, 2024
0d8c42e
add timeout logic to code
ashishkeshan Mar 14, 2024
41c04b7
try to import time and timeout_decorator
ashishkeshan Mar 14, 2024
d7d37f5
use timeout_decorator
ashishkeshan Mar 14, 2024
f2d96fd
try changing import
ashishkeshan Mar 14, 2024
013b4a6
try another style
ashishkeshan Mar 14, 2024
1d6f9b6
one more try
ashishkeshan Mar 14, 2024
8a24230
update with timeout
ashishkeshan Mar 14, 2024
adaeef1
Merge pull request #7 from education/add-timeout
ashishkeshan Mar 14, 2024
ac801e3
Update README.md
ashishkeshan Mar 19, 2024
e75a4db
Update action.yml
ashishkeshan Mar 28, 2024
9d2136c
Update action.yml
ashishkeshan Mar 28, 2024
5f795d9
Update action.yml
ashishkeshan Mar 28, 2024
c8ee857
print output for debugging
ashishkeshan Mar 28, 2024
cc1f46e
print stderr too
ashishkeshan Mar 28, 2024
a6e9ced
get rid of printing options
ashishkeshan Mar 28, 2024
8f450b4
make is_passing a function
ashishkeshan Mar 29, 2024
5c79432
try in CI
ashishkeshan Mar 29, 2024
33e0af9
try this
ashishkeshan Mar 29, 2024
6d38dd8
remove exit 1
ashishkeshan Mar 29, 2024
a841885
run setup_command if it exists
ashishkeshan Mar 29, 2024
0622665
try this
ashishkeshan Mar 29, 2024
8c1a08e
update README
ashishkeshan Mar 29, 2024
d0d83a6
default to 0 if no max_score passed
ashishkeshan Mar 29, 2024
0f3d367
Merge pull request #8 from education/try-passing-in-params
ashishkeshan Mar 29, 2024
9dee794
remove timeout logic for now
ashishkeshan Apr 3, 2024
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
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

209 changes: 0 additions & 209 deletions .github/labels.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on: [push]

jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Python test
uses: ./
id: python-test
with:
timeout: 10
max-score: 100
- name: Decode and assert python-test
uses: actions/github-script@v6
with:
github-token: ${{ github.token || 'act' }}
script: |
// Decode the Base64 output
const decodedResult = Buffer.from("${{ steps.python-test.outputs.result }}", 'base64').toString('utf8');
console.log(`Decoded Result: ${decodedResult}`);
const json = JSON.parse(decodedResult)
if ( !json["version"] ||
!json["status"] ||
!json["tests"][0]["name"]) {
throw new Error(`Assertion failed. Expected version, status, and test name to exist, but got '${decodedResult}'`);
}
22 changes: 0 additions & 22 deletions .github/workflows/deploy.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/main.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/pause-community-contributions.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: releases/v1
fetch-depth: 0
- name: Git config
run: |
git config user.name autograding-release-bot
git config user.email [email protected]
- name: Run build and commit to releases/v1
run: |
git reset --hard origin/main
git push -f origin releases/v1
- name: Tag and push v1
run: |
git tag -f v1 # Since we are already on releases/v1 we don't need a ref. This will tag HEAD of releases/v1.
git push origin v1 --force
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: v1
allowUpdates: true
19 changes: 0 additions & 19 deletions .github/workflows/sync-labels.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# For more information, see [docs](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax)

# This repository is maintained by:
* @education/classroom-reviewers
Loading