Skip to content

no implicit optional typing (#31) #55

no implicit optional typing (#31)

no implicit optional typing (#31) #55

Workflow file for this run

name: Actions
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout the repository
uses: actions/checkout@v3
- name: πŸ›  Set up Python 3
uses: actions/setup-python@v3
id: python
with:
python-version: 3.x
- name: πŸ“¦ Install dependencies
run: make requirements
- name: πŸ–€ Format with black
run: black . --check
- name: πŸ—ƒ Organize with isort
run: isort .
- name: 🧹 Lint files with pylint
run: pylint aioskybell tests
- name: 🧹 Lint files with flake8
run: flake8 aioskybell tests
- name: πŸ” Inspect with mypy
run: mypy aioskybell
test:
name: Test with Python ${{ matrix.python-version }}
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10"]
steps:
- name: πŸ“₯ Checkout the repository
uses: actions/checkout@v3
- name: πŸ› οΈ Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: πŸ“¦ Install dependencies
run: make requirements
- name: πŸƒ Run tests
run: make coverage
coverage:
name: Upload coverage to Codecov
needs: test
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout the repository
uses: actions/checkout@v3
- name: πŸ› οΈ Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: πŸ“¦ Install dependencies
run: make requirements
- name: πŸ“€ Upload coverage to Codecov
run: |
make coverage
curl -sfSL https://codecov.io/bash | bash -