From 47c29314190cf085e0da5a4c3274309cff07048c Mon Sep 17 00:00:00 2001 From: Niirok Date: Mon, 13 Dec 2021 14:47:48 +0100 Subject: [PATCH 1/4] Create main.yml --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..d4dccead --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# 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@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + - name: "Upload coverage to Codecov" + uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: true From 6140341dbc309a222443db0b52e1a18b5c890b54 Mon Sep 17 00:00:00 2001 From: Niirok Date: Mon, 13 Dec 2021 14:58:48 +0100 Subject: [PATCH 2/4] Update __init__.py --- awesome/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awesome/__init__.py b/awesome/__init__.py index 4d34acc6..93716b32 100644 --- a/awesome/__init__.py +++ b/awesome/__init__.py @@ -3,3 +3,6 @@ def smile(): def frown(): return ":(" + +def bof(): + return ":|" From 36573e9ccc4a8a20f8619872fd8cafaa29fc9595 Mon Sep 17 00:00:00 2001 From: Personne Date: Tue, 14 Dec 2021 12:20:19 +0100 Subject: [PATCH 3/4] ajout XD --- awesome/__init__.py | 6 ++++++ tests.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/awesome/__init__.py b/awesome/__init__.py index 93716b32..21b14d07 100644 --- a/awesome/__init__.py +++ b/awesome/__init__.py @@ -1,8 +1,14 @@ def smile(): return ":)" + def frown(): return ":(" + def bof(): return ":|" + + +def XD(): + return "XD" diff --git a/tests.py b/tests.py index 92aa2034..20e48a39 100644 --- a/tests.py +++ b/tests.py @@ -7,6 +7,8 @@ class TestMethods(unittest.TestCase): def test_add(self): self.assertEqual(awesome.smile(), ":)") + def test_XD(self): + self.assertEqual(awesome.XD(), "XD") if __name__ == '__main__': unittest.main() From e1022178af068f4edd186ee44b58b0f9e8af0956 Mon Sep 17 00:00:00 2001 From: MVGUS Date: Mon, 20 Nov 2023 16:18:09 +0100 Subject: [PATCH 4/4] [Update] added tests --- tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests.py b/tests.py index 20e48a39..bb9ccec2 100644 --- a/tests.py +++ b/tests.py @@ -10,5 +10,12 @@ def test_add(self): def test_XD(self): self.assertEqual(awesome.XD(), "XD") + def test_bof(self): + self.assertEqual(awesome.bof(), ":|") + + def test_frown(self): + self.assertEqual(awesome.frown(), ":(") + + if __name__ == '__main__': unittest.main()