From 3901a2297be58cdd5369483640350174c2fd42aa Mon Sep 17 00:00:00 2001 From: Konstantinos Panayiotou Date: Thu, 15 Feb 2024 20:38:42 +0200 Subject: [PATCH] Adds Pytest action --- .github/pytest.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/pytest.yml diff --git a/.github/pytest.yml b/.github/pytest.yml new file mode 100644 index 0000000..74eb8d4 --- /dev/null +++ b/.github/pytest.yml @@ -0,0 +1,30 @@ +name: Pytest + +on: + push: + branches: [ "devel", "master" ] + pull_request: + branches: [ "devel", "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi + - name: Test with pytest + run: | + pytest