From c0d836ba65b7ae405e9ad9c0ce026fa49246eae3 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Mon, 17 Aug 2020 22:07:00 +0800 Subject: [PATCH] github actions: try run directly on ubuntu to speed up and get latest Python packages via pip --- .github/workflows/mypy.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml index 990a5b8..a4fb306 100644 --- a/.github/workflows/mypy.yaml +++ b/.github/workflows/mypy.yaml @@ -3,13 +3,11 @@ on: [push, pull_request] jobs: build: name: run mypy - runs-on: ubuntu-latest - container: - image: archlinux + runs-on: ubuntu-20.04 steps: - name: Checkout Code uses: actions/checkout@v2 - name: Install deps - run: pacman -Syu --noconfirm python-tornado python-pytest python-pytest-asyncio python-pytest-httpbin python-flaky python-structlog python-toml python-aiohttp python-httpx mypy + run: pip3 install -U tornado pytest pytest-asyncio pytest-httpbin flaky structlog toml aiohttp httpx mypy - name: Run mypy - run: mypy nvchecker nvchecker_source tests + run: PATH=$HOME/.local/bin:$PATH mypy nvchecker nvchecker_source tests