Skip to content

Properly sort the pair list when there are duplicated i-j pairs #157

Properly sort the pair list when there are duplicated i-j pairs

Properly sort the pair list when there are duplicated i-j pairs #157

Workflow file for this run

name: Python tests
on:
push:
branches: [main]
pull_request:
# Check all PR
concurrency:
group: python-tests-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
python-tests:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Python ${{ matrix.python-version }}
strategy:
matrix:
include:
- os: ubuntu-20.04
python-version: "3.9"
- os: ubuntu-20.04
python-version: "3.12"
- os: macos-14
python-version: "3.12"
- os: windows-2019
python-version: "3.12"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install tests dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: run tests
if: matrix.os != 'windows-2019'
run: tox
env:
# Use the CPU only version of torch when building/running the code
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu
- name: run tests (Windows)
if: matrix.os == 'windows-2019'
# exclude torch-tests (cf https://github.com/Luthaf/vesin/issues/21)
run: tox -e lint,tests