From 5abb8d85810c77d98b2139993f9ce60eed8824e7 Mon Sep 17 00:00:00 2001 From: BrdH7940 Date: Wed, 25 Mar 2026 10:18:50 +0700 Subject: [PATCH 1/2] Feat: Test CI/CD Pipeline --- .../.github/workflows/github-ci.yml | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml b/Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml index 31e8ee0..6d696a9 100644 --- a/Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml +++ b/Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml @@ -1,19 +1,19 @@ # TODO-STEP 1: Define the Workflow Name # Uncomment the following line and replace with a descriptive name. For example: Python CI/CD Pipeline -#name: +name: Python CI/CD Pipeline # TODO-STEP 2: Define the Trigger Events # Uncomment the following lines to trigger the workflow on push and pull request events -#on: -# push: -# pull_request: +on: + push: + pull_request: jobs: # Build job # TODO-STEP 3: Create your "Build" job - #: + explore-github-actions: # TODO-STEP 3a: Specify the runner for this job - #runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - name: Checkout repository @@ -25,20 +25,20 @@ jobs: python-version: '3.9' # TODO-STEP 3b: Enter a name for your step to display on GitHub. For example: Install dependencies - #- name: + - name: Install dependencies # TODO-STEP 3c: Add commands to install dependencies # Hint: Use pip to install packages from requirements.txt - # run: | - # python -m pip install --upgrade pip - # pip install -r .txt + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt # Test job # TODO-STEP 4: Create your "Test" job - #: + test-job: # TODO-STEP 4a: Ensure this job runs after the build job. # NOTE: Make sure to use the Job Name used above in Line 14. - #needs: - #runs-on: ubuntu-latest + needs: explore-github-actions + runs-on: ubuntu-latest steps: - name: Checkout repository @@ -50,14 +50,14 @@ jobs: python-version: '3.9' # TODO-STEP 4b: Add command to install dependencies - #- name: Install dependencies - # run: | - # python -m pip install --upgrade pip - # pip install -r requirements.txt + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt # TODO-STEP 4c: Add command to run tests # Hint: Use pytest to run your test cases - #- name: Run tests - # run: pytest + - name: Run tests + run: pytest -# Remember to remove the '#' to uncomment lines when filling in the placeholders \ No newline at end of file +# Remember to remove the '#' to uncomment lines when filling in the placeholders From f7533ce770c18c1b6fcf6fb2ef51ffa1e567074b Mon Sep 17 00:00:00 2001 From: BrdH7940 Date: Wed, 25 Mar 2026 10:24:37 +0700 Subject: [PATCH 2/2] Test --- Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml b/Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml index 6d696a9..efb37c8 100644 --- a/Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml +++ b/Week 1/GitHub Actions Practice/.github/workflows/github-ci.yml @@ -59,5 +59,3 @@ jobs: # Hint: Use pytest to run your test cases - name: Run tests run: pytest - -# Remember to remove the '#' to uncomment lines when filling in the placeholders