Skip to content

Bump setupmeta from 3.5.2 to 3.6.0 in /requirements/dev (#219) #461

Bump setupmeta from 3.5.2 to 3.6.0 in /requirements/dev (#219)

Bump setupmeta from 3.5.2 to 3.6.0 in /requirements/dev (#219) #461

Workflow file for this run

---
name: CI
"on":
push:
branches: [master]
tags-ignore: "*"
paths:
- "**/*.py"
- "requirements/prod/*.txt"
- "requirements/dev/*.txt"
- "typesafety/*"
- tox.ini
pull_request:
branches: [master]
paths:
- "**/*.py"
- "requirements/prod/*.txt"
- "requirements/dev/*.txt"
- "typesafety/*"
- tox.ini
- .github/workflows/ci.yml
jobs:
yapf:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox==$(grep tox < requirements/dev/base.txt | awk -F'==' '{print $2}')
- name: Lint ${{ matrix.linter }}
run: tox -e yapf
flake8:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox==$(grep tox < requirements/dev/base.txt | awk -F'==' '{print $2}')
- name: Lint ${{ matrix.linter }}
run: tox -e flake8
mypy:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox==$(grep tox < requirements/dev/base.txt | awk -F'==' '{print $2}')
- name: Lint ${{ matrix.linter }}
run: tox -e mypy
test:
needs:
- yapf
- flake8
- mypy
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
mypy-version:
- mypy==0.770
- mypy==0.780
- mypy==0.790
- mypy==0.800
- mypy==0.812
- -e git+https://github.com/python/mypy.git#egg=mypy
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install tox==$(grep tox < requirements/dev/base.txt | awk -F'==' '{print $2}')
pip install tox-gh-actions
- name: Patch test dependencies
run: |
# remove mypy and replace with compatible version
awk '!/mypy==/' requirements/dev/tests.txt > tmp.txt \
&& mv -f tmp.txt requirements/dev/tests.txt
# pytest-mypy-plugins requires different mypy versions
# it is removed from here and later on installed manually
# with appropriate match
awk '!/pytest-mypy-plugins==/' requirements/dev/tests.txt > tmp.txt \
&& mv -f tmp.txt requirements/dev/tests.txt
# append versions, mypy is leading since pytest-mypy-plugins is
# just test runner
echo "${{ matrix.mypy-version }}" >> requirements/dev/tests.txt
echo "pytest-mypy-plugins" >> requirements/dev/tests.txt
- name: Test
run: tox