From c5c9805c05bdccf8e1c55d6b6c4e2fc805f72b92 Mon Sep 17 00:00:00 2001 From: Filipp Ozinov Date: Mon, 2 Sep 2024 11:53:11 +0400 Subject: [PATCH 1/2] Using github actions for running tests --- .github/workflows/tests.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..708e52b --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,19 @@ +name: Tests + +on: + pull_request: + push: + branches: + - master + tags: + - '*' + +jobs: + run_tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: run_tests + run: > + ls -la && + python3 -m pytest -v -s test_syncobj.py From 0137f4f94fa89e026cd5202d681811d7ce5b617c Mon Sep 17 00:00:00 2001 From: Filipp Ozinov Date: Mon, 2 Sep 2024 11:54:37 +0400 Subject: [PATCH 2/2] Install pytest --- .github/workflows/tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 708e52b..7589d07 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -16,4 +16,5 @@ jobs: - name: run_tests run: > ls -la && + python3 -m pip install -U pytest && python3 -m pytest -v -s test_syncobj.py