First draft of CI
This commit is contained in:
parent
472192e2d0
commit
3750bf9991
1 changed files with 25 additions and 0 deletions
25
.forgejo/workflows/lint.yaml
Normal file
25
.forgejo/workflows/lint.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
name: Lint
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: MyPy
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue