Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
joelee2012 committed Aug 14, 2023
1 parent 24124e1 commit 746f079
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Integration Test
name: Integration Tests

on: [push, pull_request]

jobs:
build:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down Expand Up @@ -48,6 +48,6 @@ jobs:
uses: codecov/codecov-action@v3
with:
directory: tests/integration/
files: cov.xml
files: coverage.xml
flags: integration
verbose: true
6 changes: 3 additions & 3 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Unit Test
on: [push, pull_request]

jobs:
build:
unit-tests:
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -23,7 +23,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install --upgrade keyring==21.4.0 setuptools wheel twine coveralls tox
run: pip install --upgrade keyring==21.4.0 setuptools wheel twine tox

- name: Run pylint & codestyle & unit tests
run: tox
Expand All @@ -33,7 +33,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
directory: tests/unit/
files: cov.xml
files: coverage.xml
flags: unittest
verbose: true

Expand Down
3 changes: 2 additions & 1 deletion api4jenkins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import asyncio
import threading
from importlib import import_module
import typing

from httpx import HTTPStatusError

Expand Down Expand Up @@ -412,7 +413,7 @@ async def exists(self):
return isinstance(e, (AuthenticationError, PermissionError))

@property
async def crumb(self):
async def crumb(self) -> typing.Dict[str, str]:
async with self._async_lock:
if self._crumb is None:
try:
Expand Down

0 comments on commit 746f079

Please sign in to comment.