From 117eb19e1eed3a593e504ad65af0aeb6bb234732 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Fri, 18 Dec 2020 18:07:48 +0000 Subject: [PATCH 1/3] Create ci.yaml --- .github/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1cee4ef --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: Test tesla_api + +on: pull_request + +jobs: + mypy: + name: Check annotations with Mypy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: pip install aiohttp mypy + - run: mypy + + test: + name: Tests + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + + 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: | + pip install --upgrade pip + pip install -r requirements-dev.txt + pip install codecov + - name: Run tests + run: | + make coverage + - name: Upload coverage to Codecov + run: | + codecov From 3836f750bcfc9fd9964073a8c828779ccc2c9312 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Fri, 18 Dec 2020 18:08:53 +0000 Subject: [PATCH 2/3] Delete .travis.yml --- .travis.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cfda047..0000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -language: python -python: - - 3.5 - - 3.6 - - 3.7 - - nightly - -matrix: - allow_failures: - - python: 3.7-dev - - python: nightly - -install: -- pip install --upgrade pip -- pip install -r requirements-dev.txt -- pip install codecov - -script: -- make coverage - -after_success: -- codecov - -deploy: - provider: pypi - user: aio-libs-bot - password: - secure: "fHbpT6AuRM+K6hg0nWT7ov/qJAAFJ7N5Mot1Z02QVHv9+XXJsqSmzJHMyv4FNWSO+IG9ulJ/wrVpQ/wr5S1FiCVJYpMFJP/71fqT7MbrgUg+ovbGrs1AfJHHQtVc91Az9Yl2nP+wzJCplJIuxO8IVjKHS87QxupzMHapo97ItYM6yvCNzIP+3JjvZyl5/ocqdUpl4KiS/tzXbiaBSlVgmI/013EbD5U36wcz2AAszTcBzKTDJh0BF4wr4brHnVPKr4gRSZPZRYduZ7WXh0rJt/aGyNGm9siYkKhuE+pzd/6vIbN3keKEhAjafCl4+Z3a0eL0ACyt8CBCBHf9/n4KYm+KPwLe3NYWKkO6qCJpZ+bMNfQInKiEoWJx9KDaKjdCVivlKY+abaJiF/thO4udunn3PfPz2O8MlkZRoTVqASN1sP60cULTlxfLi8x0RVqMKIHejNQi/AN8/4poCPFfFOOia/WQqq1pD45vJh8pNxsc6IEAjhHUgvMDnK0DBkEs4i2catZKc2YPEjgAkvplvTE4tH8Tzyj5EvMwM56h2zfByeKs9ojkvzyhPLhWq7d8JTPWPAyj72FsrpGm12cLU/E9g9KKj6Hg5E3F0+V2Zs7wXc+fT1ovC5/NRL2WpT2+k1wF/9Q7ZrbQ9InunHXYU7GJCFzRE8XlcRsBGPcR3Ls=" - distributions: "sdist bdist_wheel" - on: - tags: true - all_branches: true - python: 3.7 From cfa326b50240c47010ebf4d59625295e81f58663 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Fri, 18 Dec 2020 18:10:41 +0000 Subject: [PATCH 3/3] Update ci.yaml --- .github/workflows/ci.yaml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1cee4ef..8c7ba45 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,15 +3,6 @@ name: Test tesla_api on: pull_request jobs: - mypy: - name: Check annotations with Mypy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - run: pip install aiohttp mypy - - run: mypy - test: name: Tests runs-on: ubuntu-latest