Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyagreco committed Feb 20, 2024
1 parent ab0fe08 commit 37cc00d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/formatting-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: formatting check

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
manual:
description: "Trigger manually"
required: false

jobs:
format:
name: formatting check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Get Python version
id: get-python-versions
run: |
MINIMUM_VERSION=$(grep -oP '__version_minimum_python__ = "\K.*(?=")' hn_sdk/_version.py)
echo "CURRENT_VERSION=$MINIMUM_VERSION" >> $GITHUB_ENV
- uses: actions/setup-python@v2
with:
python-version: ${{ env.CURRENT_VERSION }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
make deps-dev
- name: Check Formatting
run: make fmt-check

0 comments on commit 37cc00d

Please sign in to comment.