Skip to content

v0.7.0

v0.7.0 #202

Workflow file for this run

name: Python package
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
env:
TOX_OVERRIDE: "testenv.pass_env+=XAUTHORITY,DISPLAY,TEST_BROWSER_NAME,TEST_BROWSER_PATH"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install tox
run: python -m pip install .[test]
- name: Install Brave
# https://brave.com/linux/#release-channel-installation
run: |
sudo apt-get update
sudo apt-get install -y apt-transport-https curl
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" |
sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt-get update
sudo apt-get install --yes brave-browser
- name: Run tests via tox (Chromium)
run: xvfb-run -- python -m tox -e py
- name: Run tests via tox (Brave)
env:
TEST_BROWSER_NAME: Brave
TEST_BROWSER_PATH: /usr/bin/brave-browser
run: xvfb-run -- python -m tox -e py
- if: "matrix.python-version == '3.12'"
name: Lint
run: python -m tox -e lint