Use "main" as default branch name #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cssselect2's tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: ${{ matrix.os }} - ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.11'] | |
include: | |
- os: ubuntu-latest | |
python-version: '3.7' | |
- os: ubuntu-latest | |
python-version: 'pypy-3.8' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip and setuptools | |
run: python -m pip install --upgrade pip setuptools | |
- name: Install tests' requirements | |
run: python -m pip install .[test] | |
- name: Launch tests | |
run: python -m pytest | |
- name: Check coding style | |
run: python -m flake8 --exclude tests/css-parsing-tests | |
- name: Check imports order | |
run: python -m isort . --check --diff |