From 5c1012f0bef5b0d8dc606906107e45f4791f43f7 Mon Sep 17 00:00:00 2001 From: Inga Ulusoy Date: Thu, 5 Oct 2023 10:32:38 +0200 Subject: [PATCH] test ci --- .github/workflows/ci.yml | 91 ++++++++++++++++++++-------------------- CONTRIBUTING.md | 2 +- 2 files changed, 47 insertions(+), 46 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c507840..0f500567 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c461c87..11701949 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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