chore(deps): update dependency mypy to v0.991 #580
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: Build | |
on: | |
push: | |
branches-ignore: | |
- "dependabot/**" | |
pull_request: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
uses: snok/[email protected] | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Setup | |
run: bash setup.sh | |
# - name: Install dependencies | |
# run: poetry install --no-interaction --no-root | |
# - name: Install library | |
# run: poetry run invoke install-libraries | |
- name: Check format with black | |
run: poetry run invoke check-format-with-black | |
- name: Check sorted import module | |
run: poetry run invoke sort-imports-with-isort | |
- name: Lint with pylint | |
run: poetry run invoke lint-with-pylint | |
- name: Lint with flake8 | |
run: poetry run invoke lint-with-flake8 | |
- name: Type checking with mypy | |
run: poetry run invoke lint-with-mypy | |
- name: Run tests | |
run: poetry run invoke run-tests | |
- name: Fix Code Coverage Paths | |
run: | | |
sed -i "s@${GITHUB_WORKSPACE}@/github/workspace/@g" ./reports/coverage.xml | |
- name: example | |
run: | | |
bash ./example.sh | |
- name: SonarCloud Scan | |
if: github.event_name != 'pull_request' | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: Build | |
run: poetry build | |
- name: Publish Dry Run | |
if: github.event_name == 'push' | |
run: poetry publish --username="${{ secrets.PYPI_USERNAME }}" --password="${{ secrets.PYPI_PASSWORD }}" --dry-run | |
- name: Publish | |
if: github.event_name == 'release' && github.event.action == 'created' | |
run: poetry publish --username="${{ secrets.PYPI_USERNAME }}" --password="${{ secrets.PYPI_PASSWORD }}" |