From 5d418dac38042e10d9b2877901f9d25c3225b28d Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sat, 4 Jan 2025 19:22:41 +0900 Subject: [PATCH 01/14] Create github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..15a61d6 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From e6a4b3cb46fc9a3eae0ac7e28d5950f3334007aa Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:32:20 +0900 Subject: [PATCH 02/14] Update github-actions-demo.yml Split events on branches --- .github/workflows/github-actions-demo.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 15a61d6..9fb2e3d 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,6 +1,10 @@ name: GitHub Actions Demo run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] +on: + push: + branches: [feat] + pull_request: + branches: [main] jobs: Explore-GitHub-Actions: runs-on: ubuntu-latest From d5a2dabe00e5cb5d79f695ef1c289656870ae2fd Mon Sep 17 00:00:00 2001 From: PapyrusNotes Date: Sun, 5 Jan 2025 19:50:21 +0900 Subject: [PATCH 03/14] : update github-actions-demo.yml - add new job : Test-Descriptive-Statistics --- .github/workflows/github-actions-demo.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 9fb2e3d..5ade956 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -20,3 +20,11 @@ jobs: run: | ls ${{ github.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." + Test-Descriptive-Statistics: + runs-on: ubuntu-latest + steps: + - run: echo "This job tests exercise problem in DescriptiveStatistics directory " + - name: List files in the repository + run: | + ls ${{ github.workspace }/DescriptiveStatistics} + - run: echo "🍏 This job's status is ${{ job.status }}." From 408199e425414bc5d062ac1b27ca978d18a0d2db Mon Sep 17 00:00:00 2001 From: PapyrusNotes Date: Sun, 5 Jan 2025 20:01:48 +0900 Subject: [PATCH 04/14] : fix github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 5ade956..437bfa9 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -26,5 +26,6 @@ jobs: - run: echo "This job tests exercise problem in DescriptiveStatistics directory " - name: List files in the repository run: | - ls ${{ github.workspace }/DescriptiveStatistics} + echo "Listing all files in DescriptiveStatistics of the workspace directory " + find ${{ github.workspace }} -mindepth 2 -type f - run: echo "🍏 This job's status is ${{ job.status }}." From 06e2040feee2c6d629503c87306399d450557b2f Mon Sep 17 00:00:00 2001 From: PapyrusNotes Date: Sun, 5 Jan 2025 20:12:21 +0900 Subject: [PATCH 05/14] : fix github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 437bfa9..0b35773 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -24,6 +24,10 @@ jobs: runs-on: ubuntu-latest steps: - run: echo "This job tests exercise problem in DescriptiveStatistics directory " + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository run: | echo "Listing all files in DescriptiveStatistics of the workspace directory " From 1a487cd73b90298cd447034104d7fb0d1cc49f6d Mon Sep 17 00:00:00 2001 From: PapyrusNotes Date: Sun, 5 Jan 2025 20:32:16 +0900 Subject: [PATCH 06/14] : fix github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 0b35773..52cb743 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -6,30 +6,26 @@ on: pull_request: branches: [main] jobs: - Explore-GitHub-Actions: + Explore-Scripts: runs-on: ubuntu-latest steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code uses: actions/checkout@v4 - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository run: | ls ${{ github.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." - Test-Descriptive-Statistics: - runs-on: ubuntu-latest - steps: - - run: echo "This job tests exercise problem in DescriptiveStatistics directory " - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository run: | - echo "Listing all files in DescriptiveStatistics of the workspace directory " - find ${{ github.workspace }} -mindepth 2 -type f + TARGET_FOLDER = "${{ github.workspace }}/DescriptiveStatistics" + echo "Listing all files in $TARGET_FOLDER of the workspace directory " + find $TARGET_FOLDER -mindepth 2 -type f -name "*.py" - run: echo "🍏 This job's status is ${{ job.status }}." From 2b8b76681cc927aa6b02aa16518bffedd0120b50 Mon Sep 17 00:00:00 2001 From: PapyrusNotes Date: Sun, 5 Jan 2025 20:34:46 +0900 Subject: [PATCH 07/14] : fix github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 52cb743..0ade9fe 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -26,6 +26,6 @@ jobs: - name: List files in the repository run: | TARGET_FOLDER = "${{ github.workspace }}/DescriptiveStatistics" - echo "Listing all files in $TARGET_FOLDER of the workspace directory " + echo "Listing all files in ${{ TARGET_FOLDER }} of the workspace directory " find $TARGET_FOLDER -mindepth 2 -type f -name "*.py" - run: echo "🍏 This job's status is ${{ job.status }}." From 4fb9dbd24a285822f850c39a7e0a3b97b6ef936a Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:36:45 +0900 Subject: [PATCH 08/14] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 0ade9fe..52cb743 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -26,6 +26,6 @@ jobs: - name: List files in the repository run: | TARGET_FOLDER = "${{ github.workspace }}/DescriptiveStatistics" - echo "Listing all files in ${{ TARGET_FOLDER }} of the workspace directory " + echo "Listing all files in $TARGET_FOLDER of the workspace directory " find $TARGET_FOLDER -mindepth 2 -type f -name "*.py" - run: echo "🍏 This job's status is ${{ job.status }}." From 6125d70e060275c489de0fbff750f2dd3d4671ea Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:39:33 +0900 Subject: [PATCH 09/14] Update github-actions-demo.yml fix typo From 3e2de521642a200a5001759a1e6b3dfdd10f339e Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:44:21 +0900 Subject: [PATCH 10/14] Update github-actions-demo.yml fix typo $TARGET_FOLDER -> "$TARGET_FOLDER" --- .github/workflows/github-actions-demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 52cb743..de63cd4 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -27,5 +27,5 @@ jobs: run: | TARGET_FOLDER = "${{ github.workspace }}/DescriptiveStatistics" echo "Listing all files in $TARGET_FOLDER of the workspace directory " - find $TARGET_FOLDER -mindepth 2 -type f -name "*.py" + find "$TARGET_FOLDER" -mindepth 2 -type f -name "*.py" - run: echo "🍏 This job's status is ${{ job.status }}." From 4c7d2f9fd171e3a43ee5dc55205dc361c03c9dac Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:05:06 +0900 Subject: [PATCH 11/14] Update github-actions-demo.yml fix bash typo - remove blanks in assignment of TARGET_FOLDER --- .github/workflows/github-actions-demo.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index de63cd4..904c676 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -25,7 +25,7 @@ jobs: - name: List files in the repository run: | - TARGET_FOLDER = "${{ github.workspace }}/DescriptiveStatistics" + TARGET_FOLDER="${{ github.workspace }}/DescriptiveStatistics" echo "Listing all files in $TARGET_FOLDER of the workspace directory " - find "$TARGET_FOLDER" -mindepth 2 -type f -name "*.py" + find $TARGET_FOLDER -mindepth 2 -type f -name "*.py" - run: echo "🍏 This job's status is ${{ job.status }}." From 1b3e8c1ef5b9d616325b1a3e9eb1ac957d62c329 Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:09:08 +0900 Subject: [PATCH 12/14] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 904c676..a72e39b 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -26,6 +26,5 @@ jobs: - name: List files in the repository run: | TARGET_FOLDER="${{ github.workspace }}/DescriptiveStatistics" - echo "Listing all files in $TARGET_FOLDER of the workspace directory " - find $TARGET_FOLDER -mindepth 2 -type f -name "*.py" + find $TARGET_FOLDER -type f -name "*.py" - run: echo "🍏 This job's status is ${{ job.status }}." From 93b3723b468cb79162a4f32b7260e2f536bef1e1 Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:12:00 +0900 Subject: [PATCH 13/14] Update github-actions-demo.yml extend exploring remaining directories --- .github/workflows/github-actions-demo.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index a72e39b..3103876 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -23,8 +23,20 @@ jobs: ls ${{ github.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." - - name: List files in the repository + - name: List files in DescriptiveStatistics run: | TARGET_FOLDER="${{ github.workspace }}/DescriptiveStatistics" find $TARGET_FOLDER -type f -name "*.py" - run: echo "🍏 This job's status is ${{ job.status }}." + + - name: List files in NumpyPractice + run: | + TARGET_FOLDER="${{ github.workspace }}/NumpyPractice" + find $TARGET_FOLDER -type f -name "*.py" + - run: echo "🍏 This job's status is ${{ job.status }}." + + - name: List files in PandasPractice + run: | + TARGET_FOLDER="${{ github.workspace }}/PandasPractice" + find $TARGET_FOLDER -type f -name "*.py" + - run: echo "🍏 This job's status is ${{ job.status }}." From 99801546ffa8e503f48aa0a8618f96a95a4a0dde Mon Sep 17 00:00:00 2001 From: Han Ki In <43702528+PapyrusNotes@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:27:43 +0900 Subject: [PATCH 14/14] Apply github-actions-demo.yml (#2) * Create github-actions-demo.yml * Update github-actions-demo.yml - Split events on branches - Extend exploring scripts of remaining directories