This commit is contained in:
parent
3750bf9991
commit
a4e68e34b0
1 changed files with 11 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue