Skip to content

Commit

Permalink
🤖 auto code checks
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Oct 8, 2023
1 parent f3bec45 commit 8f3655b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ☑️ Code Check

on: [push]

jobs:
pre-commit:
strategy:
matrix:
python-version: [3.10, 3.11]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pre-commit
run: pip install pre-commit poetry pytest typing-extensions
- name: Run pre-commit
run: pre-commit run --all-files
- name: Install dependencies
run: poetry config virtualenvs.create false && poetry install --extras "all"
- name: Run tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: pytest

0 comments on commit 8f3655b

Please sign in to comment.