Тестируем в CI/CD с правильным порядком зависимостей #106
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: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python # Set Python version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Install pip and pytest | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install pytest pytest-cov | |
pip install torch==2.5.1 torchvision torchaudio | |
pip install . | |
- name: Install dependencies (build torch-scatter) | |
run: | | |
pip install torch-scatter torch-sparse --no-build-isolation | |
pip install torch-geometric | |
- name: Test with pytest | |
run: | | |
cd tests | |
pytest test_general | |
pytest test_graph |