diff --git a/.github/workflows/test_Ch02.yml b/.github/workflows/test_Ch02.yml index 18a6a3e..5dec256 100644 --- a/.github/workflows/test_Ch02.yml +++ b/.github/workflows/test_Ch02.yml @@ -4,14 +4,11 @@ name: CI # Controls when the workflow will run 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: + 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 jobs: @@ -25,12 +22,15 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP + pip install jupyter # Runs a set of commands using the runners shell - - name: Run a multi-line script + - name: Build notebook run: | - echo Add other actions to build, - echo test, and deploy your project. + jupyter nbconvert --execute Ch02-statlearn-lab.ipynb +