From eb69dd58f7906c46f29aa0efe9855a33ebaf9933 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 20 Oct 2023 09:06:27 +0000 Subject: [PATCH] Setup CI --- .github/workflows/ci.yaml | 18 ++++++++++++++++++ .../src/deploy_chatmail/acmetool/__init__.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..b3428d0d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,18 @@ +name: CI + +on: + pull_request: + push: + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Lint chatmaild + working-directory: chatmaild + run: pipx run tox + - name: Lint deploy-chatmail + working-directory: deploy-chatmail + run: pipx run tox diff --git a/deploy-chatmail/src/deploy_chatmail/acmetool/__init__.py b/deploy-chatmail/src/deploy_chatmail/acmetool/__init__.py index 84a43d81..a7cca8e2 100644 --- a/deploy-chatmail/src/deploy_chatmail/acmetool/__init__.py +++ b/deploy-chatmail/src/deploy_chatmail/acmetool/__init__.py @@ -1,6 +1,6 @@ import importlib.resources -from pyinfra.operations import apt, files, systemd, server +from pyinfra.operations import apt, files, server def deploy_acmetool(nginx_hook=False, email="", domains=[]):