From 35cf215e20da2865f5091391578eac4a426a7595 Mon Sep 17 00:00:00 2001 From: Pablo Olivares Date: Tue, 19 Mar 2024 22:59:11 +0100 Subject: [PATCH] Added GitHub Actions to run tests advances #2 --- .github/workflows/test_workflow.yaml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test_workflow.yaml diff --git a/.github/workflows/test_workflow.yaml b/.github/workflows/test_workflow.yaml new file mode 100644 index 0000000..a71cee1 --- /dev/null +++ b/.github/workflows/test_workflow.yaml @@ -0,0 +1,33 @@ +name: Python Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.11] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Run tests + run: | + pytest tests/