From 9d02aef29262ce848bfe48947fcdfa08d8cd7bb4 Mon Sep 17 00:00:00 2001 From: ArtemKo7v Date: Sun, 10 May 2026 01:54:09 +0200 Subject: [PATCH] ci wf added --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3f7de79 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + pull_request: + +jobs: + test: + name: Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + + - name: Compile Python files + run: python -m py_compile nodes.py __init__.py tests/*.py + + - name: Run tests + run: python -m unittest discover -s tests -v