Skip to content

add ability to have project be a prereq for multiple projects #192

add ability to have project be a prereq for multiple projects

add ability to have project be a prereq for multiple projects #192

Workflow file for this run

name: Push Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Document branch
run: echo ${{ github.ref_name }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.tests.txt
- name: Install package
run: |
pip install -e .[test]
- name: Run Ruff
run: ruff check --output-format=github .
- name: Run tests with coverage
run: |
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=network_wrangler tests/ | tee pytest-coverage.txt
- name: Pytest coverage comment
if: github.event_name == 'pull_request'
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
- name: If a pull request, add a comment about coverage
if: github.event_name == 'pull_request'
uses: coroo/[email protected]