From bd63e6464c73296146d643bedda6f3f97f5fd3a7 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Tue, 23 Jul 2024 20:33:29 +0100 Subject: [PATCH] first attempt at a chrome workflow --- .gitea/workflows/chrome-tests.yml | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/chrome-tests.yml diff --git a/.gitea/workflows/chrome-tests.yml b/.gitea/workflows/chrome-tests.yml new file mode 100644 index 0000000..d9018a5 --- /dev/null +++ b/.gitea/workflows/chrome-tests.yml @@ -0,0 +1,40 @@ +name: ChromeTests + +on: [ push ] + +jobs: + build: + runs-on: ubuntu-gitea + strategy: + matrix: + python-version: [ "3.12" ] + env: + EDGEDRIVER_VERSION: 126.0.2592.102 + 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 python dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + mkdir drivers + + - name: Prep the Debian repositories + run: | + apt update -y + apt upgrade -y + + - name: Install Edge and EdgeDriver for Linux + if: runner.os == 'Linux' + run: | + apt install -y chromium-browser chromium-driver + + - name: Run the pytests + run: pytest -c pytest.ini -m chrome + + - name: Run the behave tests + run: behave --tags=mark.chrome