mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 15:24:18 +00:00
Minimize copy-pase in Github Actions file
This commit is contained in:
parent
ecee230c6f
commit
9261bec264
1 changed files with 7 additions and 22 deletions
29
.github/workflows/main.yml
vendored
29
.github/workflows/main.yml
vendored
|
|
@ -2,34 +2,17 @@ name: main
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: main
|
||||||
tags:
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
python: [pypy-3.7, 3.6, 3.7, 3.8, 3.9, '3.10.0-alpha - 3.10.999']
|
||||||
|
toxenv: [py]
|
||||||
include:
|
include:
|
||||||
# linux
|
|
||||||
- os: ubuntu-latest
|
|
||||||
python: pypy-3.7
|
|
||||||
toxenv: py
|
|
||||||
- os: ubuntu-latest
|
|
||||||
python: 3.6
|
|
||||||
toxenv: py
|
|
||||||
- os: ubuntu-latest
|
|
||||||
python: 3.7
|
|
||||||
toxenv: py
|
|
||||||
- os: ubuntu-latest
|
|
||||||
python: 3.8
|
|
||||||
toxenv: py
|
|
||||||
- os: ubuntu-latest
|
|
||||||
python: 3.9
|
|
||||||
toxenv: py
|
|
||||||
- os: ubuntu-latest
|
|
||||||
python: '3.10.0-alpha - 3.10.999'
|
|
||||||
toxenv: py
|
|
||||||
# windows
|
# windows
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
python: 3.6
|
python: 3.6
|
||||||
|
|
@ -50,5 +33,7 @@ jobs:
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
- run: python -mpip install --upgrade setuptools pip tox virtualenv
|
- run: |
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install --upgrade setuptools pip tox virtualenv
|
||||||
- run: tox -e ${{ matrix.toxenv }}
|
- run: tox -e ${{ matrix.toxenv }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue