Skip to content

Commit

Permalink
updated README and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
FilippoAiraldi committed Dec 5, 2024
1 parent 63a2754 commit 12c8ea2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

---
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 12c8ea2

Please sign in to comment.