From 3eca22ae7821bf7563b2d72b445c0e0715871d8f Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Wed, 24 Jul 2024 21:42:38 +0100 Subject: [PATCH] add test runner workflows --- .gitea/workflows/playwright.yml | 23 +++++++++++++++++++++++ .gitea/workflows/pylint.yml | 1 - .gitea/workflows/pytests.yml | 24 ++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/playwright.yml create mode 100644 .gitea/workflows/pytests.yml diff --git a/.gitea/workflows/playwright.yml b/.gitea/workflows/playwright.yml new file mode 100644 index 0000000..092d848 --- /dev/null +++ b/.gitea/workflows/playwright.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [ push ] + +jobs: + build: + runs-on: ubuntu-gitea + strategy: + matrix: + python-version: [ "3.12" ] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + - name: Analysing the code with pylint + run: | + behave diff --git a/.gitea/workflows/pylint.yml b/.gitea/workflows/pylint.yml index 415a6c2..a64fd87 100644 --- a/.gitea/workflows/pylint.yml +++ b/.gitea/workflows/pylint.yml @@ -18,7 +18,6 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint - python -m pip install -r requirements.txt - name: Analysing the code with pylint run: | pylint $(git ls-files '*.py') diff --git a/.gitea/workflows/pytests.yml b/.gitea/workflows/pytests.yml new file mode 100644 index 0000000..f2c5e8d --- /dev/null +++ b/.gitea/workflows/pytests.yml @@ -0,0 +1,24 @@ +name: Pytests + +on: [ push ] + +jobs: + build: + runs-on: ubuntu-gitea + strategy: + matrix: + python-version: [ "3.12" ] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + python -m pip install -r requirements.txt + - name: Analysing the code with pylint + run: | + pytest