add figure #2
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: MSNetLoader CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Free disk space | |
| run: | | |
| df -h | |
| rm -rf /opt/hostedtoolcache | |
| df -h | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies and package | |
| working-directory: MSNetLoader | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pytest-cov flake8 build | |
| python -m build | |
| pip install dist/*.whl | |
| - name: Lint | |
| working-directory: MSNetLoader | |
| run: | | |
| flake8 msnetloader --count --select=E9,F63,F7,F82 --show-source --statistics | |
| flake8 msnetloader --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
| - name: Run tests | |
| working-directory: MSNetLoader | |
| env: | |
| CUDA_VISIBLE_DEVICES: "-1" | |
| run: | | |
| pytest tests -vv --cov=msnetloader --cov-report=xml | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: PHOENIXcenter/pi-MSnet |