From fb6dd470793dac9dbd74e87b5930ba17dfbdeaa1 Mon Sep 17 00:00:00 2001 From: Nagwa Date: Fri, 16 Jan 2026 16:27:09 +0200 Subject: [PATCH 1/4] CI run with dummay test --- .../workflows/github-actions-basic.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Chapter02/.github/workflows/github-actions-basic.yml diff --git a/Chapter02/.github/workflows/github-actions-basic.yml b/Chapter02/.github/workflows/github-actions-basic.yml new file mode 100644 index 0000000..0b4c10e --- /dev/null +++ b/Chapter02/.github/workflows/github-actions-basic.yml @@ -0,0 +1,29 @@ +name: Python package +on: [push] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.9,3.10] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt;fi + - name: Lint with flake8 + run: | + flake8 . --count --select=E9,F63,F7,F82 --show-sources --statistics + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: pytest + working-directory: Chapter02 + \ No newline at end of file From d30ae233f572e392963bb963201f96cb2692219a Mon Sep 17 00:00:00 2001 From: Nagwa Ahmed Date: Fri, 16 Jan 2026 17:47:42 +0200 Subject: [PATCH 2/4] message: "CI run with test" --- .github/workflows/github-actions-basic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-basic.yml b/.github/workflows/github-actions-basic.yml index 8470e85..5161c53 100644 --- a/.github/workflows/github-actions-basic.yml +++ b/.github/workflows/github-actions-basic.yml @@ -1,7 +1,7 @@ name: Python package on: [push] - +#nagwa's file jobs: build: @@ -9,7 +9,7 @@ jobs: strategy: matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10","3.11"] steps: - uses: actions/checkout@v3 From 81e1407079c38e439a24203dbdd3479972df3409 Mon Sep 17 00:00:00 2001 From: Nagwa Ahmed Date: Fri, 16 Jan 2026 17:58:04 +0200 Subject: [PATCH 3/4] CI run with dummay test3 --- .github/workflows/github-actions-basic.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/github-actions-basic.yml b/.github/workflows/github-actions-basic.yml index 5161c53..30ade93 100644 --- a/.github/workflows/github-actions-basic.yml +++ b/.github/workflows/github-actions-basic.yml @@ -1,6 +1,9 @@ name: Python package on: [push] +branches: + main + actions #nagwa's file jobs: build: From 931e82b75558756669ac5b0d19bd17670033d662 Mon Sep 17 00:00:00 2001 From: Nagwa Ahmed Date: Fri, 16 Jan 2026 18:00:06 +0200 Subject: [PATCH 4/4] edit in helper --- Chapter02/testing/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter02/testing/helper.py b/Chapter02/testing/helper.py index 9574fa8..b29c42d 100644 --- a/Chapter02/testing/helper.py +++ b/Chapter02/testing/helper.py @@ -6,7 +6,7 @@ from numpy.random import RandomState, SeedSequence rs = RandomState(MT19937(SeedSequence(123456789))) - +#edit # Define simulate ride data function def simulate_ride_data():