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

ENV Variables are note interpreted in the autograding "command" #18

Open
bricefotzo opened this issue Oct 20, 2024 · 0 comments
Open

ENV Variables are note interpreted in the autograding "command" #18

bricefotzo opened this issue Oct 20, 2024 · 0 comments

Comments

@bricefotzo
Copy link

bricefotzo commented Oct 20, 2024

Hello !

I'm trying to run tests from a python code that reads env variables. I stored the variables and secrets in Github actions Secrets and Variables but itdoesn't work.

So I checked and it looks like the commandinput of classroom-resources/autograding-command-grader@v1is not reading environement variables.

With this configuration in the classroom.yml to compare run and the command:

    - name: Set up environment
      env:
        VARIABLE: ${{ vars.VARIABLE }}
      run: |
        echo "The VAR is $VARIABLE"
      
    - name: Check variables
      id: check-variables
      uses: classroom-resources/autograding-command-grader@v1
      env :
        VARIABLE: ${{ vars.VARIABLE }}
      with:
        test-name: Check variables
        command: echo "The VAR is $VARIABLE"
        timeout: 10
        max-score: 25

The result is :

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant