trying a test notebook script
This commit is contained in:
26
.github/workflows/test_Ch02.yml
vendored
26
.github/workflows/test_Ch02.yml
vendored
@@ -4,14 +4,11 @@ name: CI
|
|||||||
|
|
||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the "main" branch
|
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
environment:
|
||||||
|
description: 'Environment to run tests against'
|
||||||
|
type: environment
|
||||||
|
required: true
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
@@ -25,12 +22,15 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# Runs a single command using the runners shell
|
# Install
|
||||||
- name: Run a one-line script
|
- name: Install dependencies
|
||||||
run: echo Hello, world!
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install ISLP
|
||||||
|
pip install jupyter
|
||||||
|
|
||||||
# Runs a set of commands using the runners shell
|
# Runs a set of commands using the runners shell
|
||||||
- name: Run a multi-line script
|
- name: Build notebook
|
||||||
run: |
|
run: |
|
||||||
echo Add other actions to build,
|
jupyter nbconvert --execute Ch02-statlearn-lab.ipynb
|
||||||
echo test, and deploy your project.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user