Try using setup-python
Some checks failed
Lint / MyPy (push) Failing after 33s

This commit is contained in:
Michael Bradley 2025-02-23 07:11:58 -05:00
parent 3750bf9991
commit a4e68e34b0
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8

View file

@ -6,20 +6,16 @@ name: Lint
jobs:
lint:
name: MyPy
runs-on: docker
runs-on: ubuntu-22.04
steps:
- name: Checkout
- name: Checkout the code
uses: actions/checkout@v4
# TODO: Replace with working action
- name: Set up Python environment
run: |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Type-check
run: |
source venv/bin/activate
mypy *.py
- name: Set up the Python toolchain
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
- name: Set up the Python environment
run: pip install -r requirements.txt
- name: Type-check the code
run: mypy *.py