From 1bf5d926b9a6450b770976e5eee056619e596e4c Mon Sep 17 00:00:00 2001 From: Jonathan Taylor Date: Tue, 8 Aug 2023 17:19:38 -0700 Subject: [PATCH] lab test workflows --- .github/workflows/test_Ch02.yml | 5 +++-- .github/workflows/test_Ch03.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch04.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch05.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch06.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch07.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch08.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch09.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch10.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch11.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch12.yml | 40 +++++++++++++++++++++++++++++++++ .github/workflows/test_Ch13.yml | 40 +++++++++++++++++++++++++++++++++ 12 files changed, 443 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test_Ch03.yml create mode 100644 .github/workflows/test_Ch04.yml create mode 100644 .github/workflows/test_Ch05.yml create mode 100644 .github/workflows/test_Ch06.yml create mode 100644 .github/workflows/test_Ch07.yml create mode 100644 .github/workflows/test_Ch08.yml create mode 100644 .github/workflows/test_Ch09.yml create mode 100644 .github/workflows/test_Ch10.yml create mode 100644 .github/workflows/test_Ch11.yml create mode 100644 .github/workflows/test_Ch12.yml create mode 100644 .github/workflows/test_Ch13.yml diff --git a/.github/workflows/test_Ch02.yml b/.github/workflows/test_Ch02.yml index d10e211..dfcce44 100644 --- a/.github/workflows/test_Ch02.yml +++ b/.github/workflows/test_Ch02.yml @@ -33,7 +33,8 @@ jobs: pip install ISLP jupyter # Runs a set of commands using the runners shell - - name: Build notebook + - name: Build notebook for Ch02 (some errors, not really a test) run: | - jupyter nbconvert --execute --inplace Ch02-statlearn-lab.ipynb + jupyter nbconvert --execute --inplace Ch02-statlearn-lab.ipynb --allow-errors + diff --git a/.github/workflows/test_Ch03.yml b/.github/workflows/test_Ch03.yml new file mode 100644 index 0000000..d4022ce --- /dev/null +++ b/.github/workflows/test_Ch03.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch03 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch03 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch03*ipynb + + diff --git a/.github/workflows/test_Ch04.yml b/.github/workflows/test_Ch04.yml new file mode 100644 index 0000000..b148d82 --- /dev/null +++ b/.github/workflows/test_Ch04.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch04 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch04 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch04*ipynb + + diff --git a/.github/workflows/test_Ch05.yml b/.github/workflows/test_Ch05.yml new file mode 100644 index 0000000..2b01551 --- /dev/null +++ b/.github/workflows/test_Ch05.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch05 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch05 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch05*ipynb + + diff --git a/.github/workflows/test_Ch06.yml b/.github/workflows/test_Ch06.yml new file mode 100644 index 0000000..3ed430c --- /dev/null +++ b/.github/workflows/test_Ch06.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch06 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch06 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch06*ipynb + + diff --git a/.github/workflows/test_Ch07.yml b/.github/workflows/test_Ch07.yml new file mode 100644 index 0000000..d87d848 --- /dev/null +++ b/.github/workflows/test_Ch07.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch07 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch07 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch07*ipynb + + diff --git a/.github/workflows/test_Ch08.yml b/.github/workflows/test_Ch08.yml new file mode 100644 index 0000000..2b7e77b --- /dev/null +++ b/.github/workflows/test_Ch08.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch08 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch08 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch08*ipynb + + diff --git a/.github/workflows/test_Ch09.yml b/.github/workflows/test_Ch09.yml new file mode 100644 index 0000000..e88a6ff --- /dev/null +++ b/.github/workflows/test_Ch09.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch09 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch09 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch09*ipynb + + diff --git a/.github/workflows/test_Ch10.yml b/.github/workflows/test_Ch10.yml new file mode 100644 index 0000000..ce97c12 --- /dev/null +++ b/.github/workflows/test_Ch10.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch10 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch10 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch10*ipynb + + diff --git a/.github/workflows/test_Ch11.yml b/.github/workflows/test_Ch11.yml new file mode 100644 index 0000000..a2a4ee2 --- /dev/null +++ b/.github/workflows/test_Ch11.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch11 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch11 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch11*ipynb + + diff --git a/.github/workflows/test_Ch12.yml b/.github/workflows/test_Ch12.yml new file mode 100644 index 0000000..f231523 --- /dev/null +++ b/.github/workflows/test_Ch12.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch12 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch12 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch12*ipynb + + diff --git a/.github/workflows/test_Ch13.yml b/.github/workflows/test_Ch13.yml new file mode 100644 index 0000000..77ff83d --- /dev/null +++ b/.github/workflows/test_Ch13.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: Building Ch13 notebook + +# Controls when the workflow will run +on: + 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: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + cache: 'pip' + + # Install + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install ISLP jupyter + + # Runs a set of commands using the runners shell + - name: Build notebook for Ch13 (some errors, not really a test) + run: | + jupyter nbconvert --execute --inplace Ch13*ipynb + +