Skip to content

Commit 7633453

Browse files
authored
Update GitHub actions versions and support Python 3.12 testing (#73)
* Update to latest Github Actions' versions Signed-off-by: Ehud-Karavani <[email protected]> * Add python 3.12 to testing Signed-off-by: Ehud-Karavani <[email protected]> * Faiss version install conditional on Python version There are no faiss 1.7.x versions built for Python 3.12: https://pypi.org/project/faiss-cpu/#files Signed-off-by: Ehud-Karavani <[email protected]> --------- Signed-off-by: Ehud-Karavani <[email protected]>
1 parent 52ba5ea commit 7633453

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
strategy:
99
fail-fast: false # Don't cancel entire run if one python-version fails
1010
matrix:
11-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
1212
name: Build and test on Python ${{ matrix.python-version }}
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Set up Python
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
# cache: 'pip'
@@ -41,7 +41,7 @@ jobs:
4141
# pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
4242
4343
- name: Publish to CodeClimate
44-
uses: paambaati/codeclimate-action@v5.0.0
44+
uses: paambaati/codeclimate-action@v8.0.0
4545
env:
4646
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }}
4747
# Forked PRs have no access to secrets, so uploading a coverage report to Code Climate fails.

causallib/contrib/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-f https://download.pytorch.org/whl/cpu/ # To support cpu torch installation
22
torch>=1.2.0
3-
faiss-cpu~=1.7.0 # Can also use gpu for some Python versions
3+
faiss-cpu~=1.7.0;python_version < '3.12' # Can also use gpu for some Python versions
4+
faiss-cpu~=1.8.0;python_version >= '3.12'

0 commit comments

Comments
 (0)