Update flake8 requirement from ^6.1.0 to >=6.1,<8.0 #59
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: Master | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
tox: | |
name: ${{ matrix.os }} py${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10"] | |
os: [ubuntu-20.04, ubuntu-latest, macos-11, macos-latest] | |
fail-fast: false | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Load cached venv | |
uses: actions/cache@v3 | |
with: | |
path: .tox | |
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} | |
- name: Install tox | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox tox-gh-actions | |
- name: Install polars-lts-cpu | |
if: ${{ matrix.os == 'macos-11'}} | |
run: | | |
python -m pip install polars-lts-cpu | |
- name: Test with tox | |
run: tox | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
if: ${{ matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'}} | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |