From 0b54d84a1b9240b3981463d68086ee6d9ba2a4f2 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Mon, 2 Oct 2023 15:17:56 -0400 Subject: [PATCH] WIP: Run `make lint` job in GitHub Actions --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000..adac4b3fdcf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI +on: [push, pull_request] + +defaults: + run: + shell: bash + +jobs: + lint: + runs-on: ubuntu-latest + container: ubuntu:focal + steps: + - name: Install Git + run: | + apt-get update && apt-get install --yes git + - uses: actions/checkout@v3 + - name: Install dependencies + run: | + apt-get install --yes --no-install-recommends \ + build-essential python3-virtualenv python3-dev enchant file + virtualenv .venv + # TODO: this should be one step, but there are too many conflicting dependencies + ./.venv/bin/pip install -r securedrop/requirements/python3/develop-requirements.txt + ./.venv/bin/pip install -r securedrop/requirements/python3/test-requirements.txt + - name: Run lint + run: | + git config --global --add safe.directory $GITHUB_WORKSPACE + source .venv/bin/activate + make lint