2024-07-23 14:48:03 +00:00
|
|
|
name: Execute
|
2024-07-23 13:00:38 +00:00
|
|
|
|
|
|
|
on: [ push ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-gitea
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: [ "3.12" ]
|
2024-07-23 16:21:29 +00:00
|
|
|
env:
|
2024-07-23 18:24:05 +00:00
|
|
|
EDGEDRIVER_VERSION: 126.0.2592.102
|
2024-07-23 13:00:38 +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 }}
|
2024-07-23 16:21:29 +00:00
|
|
|
|
|
|
|
- name: Install python dependencies
|
2024-07-23 13:00:38 +00:00
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
python -m pip install -r requirements.txt
|
2024-07-23 17:26:12 +00:00
|
|
|
mkdir drivers
|
2024-07-23 16:21:29 +00:00
|
|
|
|
2024-07-23 18:13:55 +00:00
|
|
|
- name: Prep the Debian repositories
|
2024-07-23 18:10:28 +00:00
|
|
|
run: |
|
2024-07-23 18:13:55 +00:00
|
|
|
apt update -y
|
|
|
|
apt upgrade -y
|
|
|
|
apt install -y chromium-browser
|
|
|
|
apt install -y firefox
|
2024-07-23 18:10:28 +00:00
|
|
|
|
2024-07-23 17:57:27 +00:00
|
|
|
- name: Install Edge and EdgeDriver for Linux
|
2024-07-23 17:22:11 +00:00
|
|
|
if: runner.os == 'Linux'
|
|
|
|
run: |
|
|
|
|
wget https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_linux64.zip
|
|
|
|
unzip edgedriver_linux64.zip
|
|
|
|
mv msedgedriver drivers
|
2024-07-23 17:57:27 +00:00
|
|
|
|
|
|
|
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
|
|
|
|
install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
|
|
|
|
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
|
|
|
|
sudo rm microsoft.gpg
|
|
|
|
apt update
|
2024-07-23 17:58:48 +00:00
|
|
|
apt install -y microsoft-edge-stable
|
2024-07-23 17:22:11 +00:00
|
|
|
|
|
|
|
- name: EdgeDriver for Windows
|
|
|
|
if: runner.os == 'Windows'
|
2024-07-23 16:21:29 +00:00
|
|
|
run: |
|
2024-07-23 16:23:35 +00:00
|
|
|
wget https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_win64.zip
|
2024-07-23 16:24:55 +00:00
|
|
|
unzip edgedriver_win64.zip
|
2024-07-23 17:22:11 +00:00
|
|
|
mv msedgedriver.exe drivers
|
2024-07-23 17:24:43 +00:00
|
|
|
List-Item -Recurse drivers
|
2024-07-23 16:21:29 +00:00
|
|
|
|
2024-07-23 14:48:03 +00:00
|
|
|
- name: Run the pytests
|
2024-07-23 17:05:15 +00:00
|
|
|
run: pytest -c pytest.ini -m edge
|
|
|
|
|
2024-07-23 18:29:48 +00:00
|
|
|
- name: Run the behave tests
|
|
|
|
run: behave
|