From b90a96ec2076e29ca2cf68a9abcadb00a5ed858f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 29 Mar 2023 20:05:27 +0100 Subject: [PATCH] Add gitea CI file --- .gitea/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..caad7e4 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,26 @@ +on: [pull_request, push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.9 + - uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: pip-${{ hashFiles('dev-requirements.txt') }} + + # HACK: https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir + - name: Fix permissions + run: chmod 0755 . + + - name: Install system dependencies + run: apt-get update && apt-get install -y bash git + - name: Set up + run: ./scripts/setup.sh + - name: Lint + run: ./scripts/lint.sh