Skip to content

Commit

Permalink
Add .github/workflows/ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LifeAdventurer committed Aug 21, 2024
1 parent 3b3b282 commit e17eae1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
export PATH="$HOME/.poetry/bin:$PATH"
- name: Install dependencies
run: |
poetry install
- name: Install Pre-commit Hooks
run: poetry run pre-commit install

- name: Run Pre-commit on all files
run: poetry run pre-commit run --all-files

0 comments on commit e17eae1

Please sign in to comment.