From edaf658a10d2231f3768a6b0cdf24d9526943889 Mon Sep 17 00:00:00 2001 From: Formartha Date: Sun, 7 Apr 2024 21:03:29 +0300 Subject: [PATCH] added tests for the project --- .github/workflows/test-commit.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test-commit.yml diff --git a/.github/workflows/test-commit.yml b/.github/workflows/test-commit.yml new file mode 100644 index 0000000..c550305 --- /dev/null +++ b/.github/workflows/test-commit.yml @@ -0,0 +1,26 @@ +name: Run Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install networkx pytest + - name: Run tests + run: | + pytest tests/ \ No newline at end of file