32 lines
963 B
YAML
32 lines
963 B
YAML
name: Assignment 3 Autograder
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
grading:
|
|
name: Grading
|
|
runs-on: "macos-11"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Cache conda
|
|
uses: actions/cache@v2
|
|
env:
|
|
# Increase this value to reset cache if environment.yml has not changed
|
|
CACHE_NUMBER: 0
|
|
with:
|
|
path: ~/conda_pkgs_dir
|
|
key:
|
|
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
|
|
hashFiles('environment.yml') }}
|
|
- uses: conda-incubator/setup-miniconda@v2
|
|
with:
|
|
activate-environment: gc_course_env
|
|
channel-priority: strict
|
|
environment-file: environment.yml
|
|
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
|
|
auto-activate-base: false
|
|
- name: Run tests
|
|
working-directory: ${{github.workspace}}/assignment_3_3/test
|
|
shell: bash -l {0}
|
|
run: pytest test.py
|