Entrypoint #27
Workflow file for this run
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: Python package | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| release: | |
| types: [published] | |
| jobs: | |
| test: | |
| name: Unittests+streamlit | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' # caching pip dependencies | |
| cache-dependency-path: '**/pyproject.toml' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest | |
| pip install -e . | |
| - name: Run tests | |
| run: python -m pytest tests | |
| - name: Execute streamlit report | |
| run: | | |
| cd docs | |
| vuegen --config example_data/MicW2Graph/report_config_micw2graph.yaml | |
| other-reports: | |
| name: Integration tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' # caching pip dependencies | |
| cache-dependency-path: '**/pyproject.toml' | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -e ".[quarto]" | |
| - name: Execute streamlit report (to check) | |
| run: | | |
| cd docs | |
| vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml | |
| # repeat for easier inspection on GitHub: | |
| - name: quatro html report | |
| run: | | |
| cd docs | |
| vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt html | |
| - name: quatro pdf report | |
| run: | | |
| cd docs | |
| vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt pdf | |
| - name: quatro docx report | |
| run: | | |
| cd docs | |
| vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt docx | |
| - name: quatro odt report | |
| run: | | |
| cd docs | |
| vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt odt | |
| - name: quatro revealjs report | |
| run: | | |
| cd docs | |
| vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt revealjs | |
| - name: quatro pptx report | |
| run: | | |
| cd docs | |
| vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt pptx | |
| - name: quatro jupyter report | |
| run: | | |
| cd docs | |
| vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt jupyter |