Skip to content

Update tox passenv for tox v4 #175

Update tox passenv for tox v4

Update tox passenv for tox v4 #175

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'

Check failure on line 22 in .github/workflows/python-package.yml

View workflow run for this annotation

GitHub Actions / Python package

Invalid workflow file

The workflow is not valid. .github/workflows/python-package.yml (Line: 22, Col: 7): Unexpected value '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
run: |
sudo apt-get update
sudo apt-get install -y apt-transport-https curl
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key add -
echo "deb [arch=amd64] 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