Skip to content

Commit

Permalink
test catalog prepration sepratly from unittests
Browse files Browse the repository at this point in the history
Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
  • Loading branch information
elronbandel committed Jan 29, 2024
1 parent 94eabb7 commit df069de
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test_catalog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Python Code

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
run-full-tests-suit:

runs-on: ubuntu-latest
env:
OS: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements/base.rqr
- run: pip install -r requirements/tests.rqr
- run: pip install unittest
- run: pip install "huggingface_hub[cli]"
- run: git config --global credential.helper store
- run: huggingface-cli login --token ${{ secrets.UNITXT_READ_HUGGINGFACE_HUB_FOR_TESTS }} --add-to-git-credential

- name: Generate Report
env:
HUGGINGFACE_HUB_TOKEN: ${{ secrets.UNITXT_READ_HUGGINGFACE_HUB_FOR_TESTS }}
run: python -m unittest tests.test_preparation

File renamed without changes.
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"



[tool.ruff.lint.pydocstyle]
convention = "google"
convention = "google"

[tool.coverage.run]
omit = [
"*/test_preparation.py"
]

0 comments on commit df069de

Please sign in to comment.