Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
iulusoy committed Oct 5, 2023
1 parent ee433e9 commit 5c1012f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 46 deletions.
91 changes: 46 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04,windows-latest,macos-latest]
os: [ubuntu-22.04]
# os: [ubuntu-22.04,windows-latest,macos-latest]
python-version: [3.9]
steps:
- name: Checkout repository
Expand All @@ -28,51 +29,51 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -e .
- name: Run pytest test_colors
run: |
cd ammico
python -m pytest test/test_colors.py -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_cropposts
run: |
cd ammico
python -m pytest test/test_cropposts.py -svv --cov=. --cov-report=xml --cov-append
# - name: Run pytest test_colors
# run: |
# cd ammico
# python -m pytest test/test_colors.py -svv --cov=. --cov-report=xml --cov-append
# - name: Run pytest test_cropposts
# run: |
# cd ammico
# python -m pytest test/test_cropposts.py -svv --cov=. --cov-report=xml --cov-append
# - name: Run pytest test_display
# run: |
# cd ammico
# python -m pytest test/test_display.py -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_faces
run: |
cd ammico
python -m pytest test/test_faces.py -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_multimodal_search
run: |
cd ammico
python -m pytest test/test_multimodal_search.py -m "not long" -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_objects
run: |
cd ammico
python -m pytest test/test_objects.py -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_summary
run: |
cd ammico
python -m pytest test/test_summary.py -m "not long" -svv --cov=. --cov-report=xml --cov-append
- name: Clear cache
if: matrix.os == 'ubuntu-22.04'
run: |
rm -rf ~/.cache/*
- name: Run pytest test_text
run: |
cd ammico
python -m pytest test/test_text.py -m "not gcv" -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_utils
run: |
cd ammico
python -m pytest test/test_utils.py -svv --cov=. --cov-report=xml --cov-append
- name: Upload coverage
if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9'
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: ammico/coverage.xml
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Run pytest test_faces
# run: |
# cd ammico
# python -m pytest test/test_faces.py -svv --cov=. --cov-report=xml --cov-append
# - name: Run pytest test_multimodal_search
# run: |
# cd ammico
# python -m pytest test/test_multimodal_search.py -m "not long" -svv --cov=. --cov-report=xml --cov-append
# - name: Run pytest test_objects
# run: |
# cd ammico
# python -m pytest test/test_objects.py -svv --cov=. --cov-report=xml --cov-append
# - name: Run pytest test_summary
# run: |
# cd ammico
# python -m pytest test/test_summary.py -m "not long" -svv --cov=. --cov-report=xml --cov-append
# - name: Clear cache
# if: matrix.os == 'ubuntu-22.04'
# run: |
# rm -rf ~/.cache/*
# - name: Run pytest test_text
# run: |
# cd ammico
# python -m pytest test/test_text.py -m "not gcv" -svv --cov=. --cov-report=xml --cov-append
# - name: Run pytest test_utils
# run: |
# cd ammico
# python -m pytest test/test_utils.py -svv --cov=. --cov-report=xml --cov-append
# - name: Upload coverage
# if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9'
# uses: codecov/codecov-action@v3
# with:
# fail_ci_if_error: true
# files: ammico/coverage.xml
# verbose: true
# token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Welcome to `ammico`! Contributions to the package are welcome. Please adhere to the following conventions:

- fork the repository, make your changes, and make sure your changes pass all the tests (Sonarcloud, unit and integration tests, codecoverage limits); then open a Pull Request for your changes. Tag one of `nlpannotator`'s developers for review.
- fork the repository, make your changes, and make sure your changes pass all the tests (Sonarcloud, unit and integration tests, codecoverage limits); then open a Pull Request for your changes. Tag one of `ammico`'s developers for review.
- install and use the pre-commit hooks by running `pre-commit install` in the repository directory so that all your changes adhere to the PEP8 style guide and black code formatting
- make sure to update the documentation if applicable

Expand Down

0 comments on commit 5c1012f

Please sign in to comment.