From c9796e8f624526ec9d5e7ff597917fc5f6f8c48d Mon Sep 17 00:00:00 2001 From: Yury Hrytsuk <50014626+YuryHrytsuk@users.noreply.github.com> Date: Tue, 14 Nov 2023 11:40:02 +0100 Subject: [PATCH] Add ci (#434) * Return removed staging CA for letsenrypt * Fix missing $ * Remove PAYMENTS_AUTORECHARGE_DEFAULT_MIN_BALANCE * Add CI * Fix set up python * Use newer ubuntu * Use pyenv * Show python version * minor fixes * fix * Formatting --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 00000000..96681a36 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: [push, pull_request] + +jobs: + pre-commit: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Define python + run: echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV + + - name: Install python version + uses: gabrielfalcao/pyenv-action@v11 + with: + default: "${{ env.PYTHON_VERSION }}" + command: pip install -U pip + + - name: Show python version + run: python --version + + - name: Install dependencies + run: | + pip install pre-commit + pre-commit install + + - name: Run pre-commit + run: SKIP=stack-yml-generated-is-valid pre-commit run --all-files