Skip to content

Commit

Permalink
chore: Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Apr 22, 2024
1 parent 087392c commit 4a8ec1d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@ name: CI

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main

jobs:

lint:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jpetrucciani/black-check@master
- uses: jpetrucciani/ruff-check@main

pytest:
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest]
Expand All @@ -23,8 +30,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install Poetry
run: pip3 install poetry==1.5.1

run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -35,7 +41,9 @@ jobs:
- name: Install Dependencies
run: |
poetry env use "${{ matrix.python-version }}"
poetry install --no-interaction --no-cache
poetry install --extras all
- name: Test with pytest
run: poetry run pytest --dist no -n 0
run: poetry run pytest
env:
HUGGINGFACE_HUB_TOKEN: ${{ secrets.HUGGINGFACE_HUB_TOKEN }}

0 comments on commit 4a8ec1d

Please sign in to comment.