From 12c8ea2d4f1f12053453e697ad8f14a4106f4ab2 Mon Sep 17 00:00:00 2001 From: Filippo Airaldi Date: Thu, 5 Dec 2024 14:26:50 +0100 Subject: [PATCH] updated README and CI --- .github/workflows/ci.yml | 32 ++++++++++++++++++-------------- README.md | 8 ++++---- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c71157f..1668afd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,18 +1,20 @@ name: Tests -on: [push] +on: + push: + branches-ignore: + - 'refs/tags/*' + pull_request: + branches-ignore: + - 'refs/tags/*' jobs: - # https://github.com/philschmid/github-actions/blob/master/python/run-unittest-on-pr-open.yaml - # https://docs.codeclimate.com/docs/github-actions-test-coverage - test-coverage: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] - RUNNING_TESTS: [0, 1] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 @@ -29,11 +31,13 @@ jobs: - name: Test with unittest run: | coverage run -m unittest discover ./tests 'test_*.py' - # - name: Coverage with Code Climate - # uses: paambaati/codeclimate-action@v4.0.0 - # # send report only when jit is disabled, and for python 3.11 - # env: - # CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }} - # with: - # coverageCommand: coverage xml - # debug: true + env: + RUNNING_TESTS: 1 + - name: Coverage with Code Climate (3.9 only) + if: matrix.python-version == '3.9' + uses: paambaati/codeclimate-action@v9 + env: + CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }} + with: + coverageCommand: coverage xml + debug: true diff --git a/README.md b/README.md index b63e363..0f3c243 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ approximation. [![Tests](https://github.com/FilippoAiraldi/global-optimization/actions/workflows/ci.yml/badge.svg)](https://github.com/FilippoAiraldi/global-optimization/actions/workflows/ci.yml) [![Downloads](https://static.pepy.tech/badge/globopt)](https://www.pepy.tech/projects/globopt) -[![Maintainability](https://api.codeclimate.com/v1/badges/d1cf537cff6af108508/maintainability)](https://codeclimate.com/github/FilippoAiraldi/global-optimization/maintainability) -[![Test Coverage](https://api.codeclimate.com/v1/badges/d1cf537cff6af1a0808/test_coverage)](https://codeclimate.com/github/FilippoAiraldi/global-optimization/test_coverage) +[![Maintainability](https://api.codeclimate.com/v1/badges/6847f2c2c04b20a909fe/maintainability)](https://codeclimate.com/github/FilippoAiraldi/global-optimization/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/6847f2c2c04b20a909fe/test_coverage)](https://codeclimate.com/github/FilippoAiraldi/global-optimization/test_coverage) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) --- @@ -40,7 +40,7 @@ it to the more generic field of global optimization via IDW [[3]](#3) and RBF [[ The repository of this package includes also the source code for the following paper: -TODO +TODO: submitted to COAP ```bibtex @article{airaldi2024nonmyopic, @@ -184,7 +184,7 @@ use them to optimize custom black-box functions. As aforementioned, this package was used as source code of the following paper: -TODO +TODO: submitted to COAP ```bibtex @article{airaldi2024nonmyopic,