Skip to content

Finish assignment MSE #13

Finish assignment MSE

Finish assignment MSE #13

Workflow file for this run

name: test-assignment
# Only run this when the master branch changes
on:
push:
branches:
- assignment
# If your git repository has the Jupyter Book within some-subfolder next to
# unrelated files, you can make this run only if a file within that specific
# folder has been modified.
#
paths:
- ml-book/assignment/**
- .github/**
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
test-assignment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest
pip install nbmake
- name: Get file changes
id: get_file_changes
uses: trilom/[email protected]
with:
output: ' '
- name: Echo file changes
run: |
echo Changed files: ${{ steps.get_file_changes.outputs.files }}
- name: Test the assignment
run: |
pytest --nbmake ${{ steps.get_file_changes.outputs.files }}