From f4a78fed11b92e23daf4bb8f078d878c4c1018fd Mon Sep 17 00:00:00 2001 From: andreasgriffin Date: Sun, 9 Jun 2024 18:18:11 +0200 Subject: [PATCH] added github workflow --- .github/workflows/python-tests.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/python-tests.yml diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml new file mode 100644 index 0000000..69189a1 --- /dev/null +++ b/.github/workflows/python-tests.yml @@ -0,0 +1,35 @@ +name: Pytest + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + test: + runs-on: ${{ matrix.os }} + timeout-minutes: 10 + strategy: + matrix: + python-version: ['3.10'] + os: [ ubuntu-latest ] # [macos-latest, ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install + + - name: Run tests + run: | + poetry run pytest -vvv --log-cli-level=DEBUG --setup-show --maxfail=1