This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
Support various dimensions in CosineSimilarity #846
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: self-hosted | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.8" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 | |
python -m pip install isort | |
python -m pip install black | |
python -m pip install black[jupyter] | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Check Python syntax errors | |
run: | | |
flake8 . --count --show-source --statistics | |
- name: Validate the coding style | |
run: | | |
python -m isort . --check | |
python -m black . --check | |
- name: Install Trident | |
run: | | |
bash install_package.sh | |
- name: Test with pytest | |
run: | | |
python -m pytest -n 5 . |