From 529ab140c47774a49dcd78c61cce518538289ede Mon Sep 17 00:00:00 2001 From: larsevj Date: Thu, 3 Oct 2024 20:33:15 +0200 Subject: [PATCH] Attempt using apt-get for python3.6 --- .github/workflows/typing.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index 069af7f..24d97fc 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -1,4 +1,4 @@ -name: Style +name: Typing on: push: @@ -7,6 +7,9 @@ on: branches: [main] workflow_call: +env: + UV_SYSTEM_PYTHON: 1 + jobs: type-check: runs-on: ubuntu-latest @@ -19,6 +22,7 @@ jobs: - name: Install dependencies run: | pip install -U pip + pip install . pip install mypy - name: Run mypy @@ -28,15 +32,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Setup Python uses: actions/setup-python@v5 with: - python-version: 3.6 - - name: Install dependencies + python-version: 3.12 + - name: Install pyenv run: | - pip install -U pip - pip install mypy - + pip install pyenv + - name: Install python + run: | + pyenv install 3.6 + pyenv global 3.6 - name: Run mypy run: | - mypy komodoenv --python-version 3.6 \ No newline at end of file + python3.6 -m pip install -U pip + python3.6 -m pip install mypy + python3.6 -m mypy komodoenv --python-version 3.6