Add edge-weight metadata documentation #30
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test-and-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install package and dev dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[dev] | |
| pip install pytest-cov | |
| - name: Run Ruff lint | |
| run: | | |
| ruff check . | |
| - name: Run Ruff format check | |
| run: | | |
| ruff format --check . | |
| - name: Run mypy | |
| run: | | |
| mypy src | |
| - name: Run pytest with coverage | |
| run: | | |
| pytest \ | |
| --cov=edge2torch \ | |
| --cov-report=term-missing \ | |
| --cov-report=xml \ | |
| --cov-report=html | |
| - name: Upload HTML coverage artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: htmlcov | |
| path: htmlcov/ | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage.xml | |
| - name: Build package | |
| run: | | |
| python -m build |