pyquery/.github/workflows/tox.yml

36 lines
819 B
YAML

name: tox
on: [push, pull_request]
jobs:
tox:
runs-on: ubuntu-latest
env:
MOZ_HEADLESS: "1"
strategy:
matrix:
python: [3.5, 3.6, 3.7, 3.8, 3.9]
steps:
- name: Setup firefox
uses: browser-actions/setup-firefox@latest
with:
firefox-version: latest
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install geckodriver
run: tests/geckodriver.sh
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
run: |
export PATH=$PATH:$PWD
tox -e py
- name: Run flake8 / docs
run: tox -e flake8,docs
if: matrix.python == 3.8