Skip to content

Commit

Permalink
Add ci (#434)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
YuryHrytsuk authored Nov 14, 2023
1 parent a3f0110 commit c9796e8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c9796e8

Please sign in to comment.