Update build.yml #645
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: Build | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ "3.11", "3.12", "3.13", "3.14" ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y python3-sphinx sphinx-rtd-theme-common | |
| pip install sphinx_rtd_theme recommonmark pytest pytest-cov | |
| pip install --upgrade setuptools | |
| - name: Install utilities for testing | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install stress-ng | |
| sudo apt-get install graphviz libgraphviz-dev | |
| pip install docker | |
| pip install pygraphviz | |
| pip install pydot | |
| - name: Check package install | |
| run: | | |
| pip install . | |
| - name: Run tests | |
| run: python3 -m pytest -s -v -m unit --cov=wfcommons tests/ | |
| - name: Upload coverage | |
| if: github.ref == 'refs/heads/main' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Build documentation | |
| run: | | |
| cd docs | |
| make html |