Addressing main PR comments #79
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: "Unit tests" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "docs/**" | |
| - "*.md" | |
| pull_request: | |
| paths-ignore: | |
| - "docs/**" | |
| - "*.md" | |
| jobs: | |
| unit_tests_linux: | |
| name: "Python ${{ matrix.python-version }}" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.14.0"] # 3.14.1 has upstream bug | |
| env: | |
| # GitHub currently has 4 cores available for Linux runners | |
| # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
| worker_cores: 4 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "Set up Python ${{ matrix.python-version }}" | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - name: "Install MultiQC" | |
| run: pip install -e '.[dev]' | |
| - name: "Download test data" | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: MultiQC/test-data | |
| path: test-data | |
| - name: "Run unit tests" | |
| run: pytest -vv -n ${{ env.worker_cores }} --cov=multiqc --cov-report=xml | |
| - name: "Upload coverage to Codecov" | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: ./coverage.xml | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |