diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..cfd9ad0 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,22 @@ +name: Test with Buck + +on: [push] + +jobs: + test: + runs-on: ubuntu-20.04 # Not latest, because python3.6 is not available on latest + # https://github.com/actions/setup-python/issues/544 + steps: + - name: Checkout repository and submodules + uses: actions/checkout@v4 + with: + submodules: recursive + # We use tags to determine version, so fetch them + fetch-depth: 0 + fetch-tags: true + - name: Perform tests + id: test + uses: SandakovMM/build-with-buck@v3 + with: + command: test + target: --all diff --git a/pleskdistup/common/tests/motdtests.py b/pleskdistup/common/tests/motdtests.py index 8cf66cd..7f054e0 100644 --- a/pleskdistup/common/tests/motdtests.py +++ b/pleskdistup/common/tests/motdtests.py @@ -64,7 +64,7 @@ def tearDown(self): def test_publish_simple_message(self): expected_message = """ =============================================================================== -Message from the Plesk dist-upgrade tool: +Message from the Plesk dist-upgrader tool: one You can remove this message from the {} file. =============================================================================== @@ -78,7 +78,7 @@ def test_publish_simple_message(self): def test_publish_several_messages(self): expected_message = """ =============================================================================== -Message from the Plesk dist-upgrade tool: +Message from the Plesk dist-upgrader tool: one two You can remove this message from the {} file. @@ -99,7 +99,7 @@ def test_backed_up_message_saved(self): expected_message = """old =============================================================================== -Message from the Plesk dist-upgrade tool: +Message from the Plesk dist-upgrader tool: one two You can remove this message from the {} file.