Files
PINA/.github/workflows/testing_pr.yml
Nicola Demo bd88e24174 fix slicing for LabelTensor (#167)
* fix slicing for LabelTensor
* Update testing_pr.yml for solving python3.1 error
2023-11-17 09:51:29 +01:00

36 lines
688 B
YAML

name: "Testing Pull Request"
on:
pull_request:
branches:
- "master"
- "v0.1"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: [3.7, 3.8, 3.9, '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[test]
- name: Test with pytest
run: |
python3 -m pytest