behave-framework/.gitea/workflows/chrome-tests.yml
Greg Gauthier eb580220a1
Some checks failed
ChromeTests / build (3.12) (push) Failing after 18s
EdgeTests / build (3.12) (push) Successful in 1m3s
Pylint / build (3.12) (push) Successful in 13s
don't use the debian repositories
2024-07-23 21:04:51 +01:00

43 lines
1.2 KiB
YAML

name: ChromeTests
on: [ push ]
jobs:
build:
runs-on: ubuntu-gitea
strategy:
matrix:
python-version: [ "3.12" ]
env:
CHROMEDRIVER_VERSION: 114.0.5735.90
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: Install Chrome and Chromedriver for Linux
if: runner.os == 'Linux'
run: |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome-stable_current_amd64.deb
apt install -f
google-chrome --version
wget https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
unzip
mv chromedriver drivers
- name: Run the pytests
run: pytest -c pytest.ini -m chrome
- name: Run the behave tests
run: behave --tags=mark.chrome