Added py.typed
file and enabled implicit_optional
#78
Workflow file for this run
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: ["3.7"] | |
platform: ["ubuntu-latest"] | |
runs-on: ${{ matrix.platform }} | |
name: test ${{ matrix.platform }} (py${{ matrix.python_version }}) | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python_version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "${{ matrix.python_version }}" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt --user | |
- name: Run mypy | |
run: | | |
python -m mypy req_compile | |
env: | |
MYPYPATH: req-compile/stubs | |
- name: Run pylint | |
run: | | |
python -m pylint req_compile | |
- name: Test with pytest | |
run: | | |
python -m pytest | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt --user | |
- name: Run black | |
run: | | |
black --check --diff req_compile | |
- name: Run isort | |
run: | | |
isort --check-only req_compile | |