From 38450c6e46abf93248069bb46b2cff90eaa5e3f4 Mon Sep 17 00:00:00 2001 From: AustinYYY <114481351+AustinYYY@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:54:53 +0100 Subject: [PATCH 1/5] Create dummy.txt activity 8 week 1 --- dummy.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 dummy.txt diff --git a/dummy.txt b/dummy.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/dummy.txt @@ -0,0 +1 @@ + From 2c6c5ce13a366be1367c0ab39726b6b4acda6943 Mon Sep 17 00:00:00 2001 From: AustinYYY <114481351+AustinYYY@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:55:20 +0100 Subject: [PATCH 2/5] Update dummy.txt --- dummy.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dummy.txt b/dummy.txt index 8b13789..11e6dde 100644 --- a/dummy.txt +++ b/dummy.txt @@ -1 +1 @@ - +Some dummy text. From 28d74724c62232892bad451718884cf3a46e02a0 Mon Sep 17 00:00:00 2001 From: Yiqi Deng Date: Fri, 11 Oct 2024 15:52:49 +0100 Subject: [PATCH 3/5] Added temp.py --- temp.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 temp.py diff --git a/temp.py b/temp.py new file mode 100644 index 0000000..ef005ec --- /dev/null +++ b/temp.py @@ -0,0 +1,2 @@ +if __name__ == '__main__': + print('Hello, World!') From 0a6809bec61fff872d53cdcc0e5ee745cccf3856 Mon Sep 17 00:00:00 2001 From: Yiqi Deng Date: Thu, 24 Oct 2024 15:24:13 +0100 Subject: [PATCH 4/5] change it --- dyq.py | 2 ++ temp.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 dyq.py diff --git a/dyq.py b/dyq.py new file mode 100644 index 0000000..d815f15 --- /dev/null +++ b/dyq.py @@ -0,0 +1,2 @@ +if __name__ == '__main__': + print('Hello, World!666') \ No newline at end of file diff --git a/temp.py b/temp.py index ef005ec..9a7b02c 100644 --- a/temp.py +++ b/temp.py @@ -1,2 +1,2 @@ if __name__ == '__main__': - print('Hello, World!') + print('Hello, World!666') From ddc87f63a9d7441ba57fa75ed36a4092e0957b22 Mon Sep 17 00:00:00 2001 From: AustinYYY <114481351+AustinYYY@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:03:05 +0000 Subject: [PATCH 5/5] Create python-app.yml --- .github/workflows/python-app.yml | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..64f1a92 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,40 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - 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 + pip install -e . + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest