From 3750bf9991e99e072290d0470d4e1747c7248320 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sun, 23 Feb 2025 06:21:16 -0500 Subject: [PATCH] First draft of CI --- .forgejo/workflows/lint.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .forgejo/workflows/lint.yaml diff --git a/.forgejo/workflows/lint.yaml b/.forgejo/workflows/lint.yaml new file mode 100644 index 0000000..636830b --- /dev/null +++ b/.forgejo/workflows/lint.yaml @@ -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