2024-07-23 19:33:29 +00:00
|
|
|
name: ChromeTests
|
|
|
|
|
|
|
|
on: [ push ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-gitea
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: [ "3.12" ]
|
|
|
|
env:
|
2024-07-23 20:04:51 +00:00
|
|
|
CHROMEDRIVER_VERSION: 114.0.5735.90
|
2024-07-23 20:57:30 +00:00
|
|
|
CHROME_VERSION: 113.0.5672.0
|
2024-07-23 19:33:29 +00:00
|
|
|
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
|
|
|
|
|
2024-07-23 20:08:35 +00:00
|
|
|
- name: Prep the Debian repositories
|
|
|
|
run: |
|
|
|
|
apt update -y
|
|
|
|
apt upgrade -y
|
|
|
|
|
2024-07-23 19:37:33 +00:00
|
|
|
- name: Install Chrome and Chromedriver for Linux
|
2024-07-23 19:33:29 +00:00
|
|
|
if: runner.os == 'Linux'
|
|
|
|
run: |
|
2024-07-23 20:57:30 +00:00
|
|
|
wget https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chrome-linux64.zip
|
2024-07-23 20:04:51 +00:00
|
|
|
wget https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
|
2024-07-23 20:57:30 +00:00
|
|
|
unzip chrome-linux64.zip
|
2024-07-23 20:08:35 +00:00
|
|
|
unzip chromedriver_linux64.zip
|
2024-07-23 20:04:51 +00:00
|
|
|
mv chromedriver drivers
|
2024-07-23 20:57:30 +00:00
|
|
|
export PATH=$PATH:./chrome-linux64
|
|
|
|
export PATH=$PATH:./drivers
|
2024-07-23 19:33:29 +00:00
|
|
|
|
2024-07-23 20:39:33 +00:00
|
|
|
- name: Verify Installation
|
|
|
|
run: |
|
2024-07-23 20:57:30 +00:00
|
|
|
which chrome
|
|
|
|
chrome --version
|
|
|
|
chromedriver --version
|
2024-07-23 20:39:33 +00:00
|
|
|
|
2024-07-23 19:33:29 +00:00
|
|
|
- name: Run the pytests
|
|
|
|
run: pytest -c pytest.ini -m chrome
|
|
|
|
|
|
|
|
- name: Run the behave tests
|
|
|
|
run: behave --tags=mark.chrome
|