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