From 693899a5fef6cca4a5aeb98a3993e9cc1f97118e Mon Sep 17 00:00:00 2001 From: Sergey Zagoruyko Date: Mon, 30 Dec 2024 23:51:52 +0400 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 82 ++++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 064eeab..7ec8935 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,42 +1,42 @@ name: CI for torchviz - - on: - push: - branches: - - ci - pull_request: - branches: - - ci - - jobs: - test: - name: Test on Python ${{ matrix.python-version }} - runs-on: ubuntu-latest - - strategy: - matrix: - python-version: [3.8, 3.9, 3.10, 3.11] - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install system dependencies - run: | - sudo apt-get update - sudo apt-get install -y graphviz - - - name: Install Python dependencies - run: | - python -m pip install --upgrade pip - pip install . - pip install pytest - - - name: Run tests - run: | - pytest test/ + +on: + push: + branches: + - ci + pull_request: + branches: + - ci + +jobs: + test: + name: Test on Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.8, 3.9, 3.10, 3.11] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y graphviz + + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install . + pip install pytest + + - name: Run tests + run: | + pytest test/