diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c41b1cd..c89cfb6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,13 @@ jobs: strategy: fail-fast: false # Don't cancel entire run if one python-version fails matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] name: Build and test on Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} # cache: 'pip' @@ -41,7 +41,7 @@ jobs: # pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html - name: Publish to CodeClimate - uses: paambaati/codeclimate-action@v5.0.0 + uses: paambaati/codeclimate-action@v8.0.0 env: CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }} # Forked PRs have no access to secrets, so uploading a coverage report to Code Climate fails. diff --git a/causallib/contrib/requirements.txt b/causallib/contrib/requirements.txt index a9ef6d7..e2bbe79 100644 --- a/causallib/contrib/requirements.txt +++ b/causallib/contrib/requirements.txt @@ -1,3 +1,4 @@ -f https://download.pytorch.org/whl/cpu/ # To support cpu torch installation torch>=1.2.0 -faiss-cpu~=1.7.0 # Can also use gpu for some Python versions \ No newline at end of file +faiss-cpu~=1.7.0;python_version < '3.12' # Can also use gpu for some Python versions +faiss-cpu~=1.8.0;python_version >= '3.12' \ No newline at end of file