1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/.github/workflows/python-linters.yml

47 lines
1.2 KiB
YAML
Raw Normal View History

2019-08-31 10:51:10 +02:00
name: Code quality
on:
push:
pull_request:
schedule:
# Run every Friday at 18:02 UTC
# https://crontab.guru/#2_18_*_*_5
- cron: 2 18 * * 5
jobs:
linters:
name: 🤖
runs-on: ${{ matrix.os }}
strategy:
# max-parallel: 5
matrix:
os:
- ubuntu-18.04
env:
- TOXENV: docs
- TOXENV: lint
- TOXENV: lint-py2
PYTHON_VERSION: 2.7
- TOXENV: mypy
- TOXENV: packaging
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.env.PYTHON_VERSION || 3.7 }}
uses: actions/setup-python@v1
with:
version: ${{ matrix.env.PYTHON_VERSION || 3.7 }}
- name: Pre-configure global Git settings
run: >-
tools/travis/setup.sh
- name: Update setuptools and tox dependencies
run: >-
tools/travis/install.sh
- name: 'Initialize tox envs: ${{ matrix.env.TOXENV }}'
run: >-
2019-09-02 16:15:12 +02:00
TOX_PARALLEL_NO_SPINNER=1 python -m tox --parallel auto --notest --skip-missing-interpreters false
2019-08-31 10:51:10 +02:00
env: ${{ matrix.env }}
- name: Test with tox
run: >-
2019-09-02 16:10:58 +02:00
TOX_PARALLEL_NO_SPINNER=1 python -m tox --parallel auto
2019-08-31 10:51:10 +02:00
env: ${{ matrix.env }}