Skip to content

Small refactor FastQC (#2763) #1

Small refactor FastQC (#2763)

Small refactor FastQC (#2763) #1

Workflow file for this run

name: "Windows tests"
on:
push:
paths:
# runs e.g. when version updated, module added, or dependency added
- "pyproject.toml"
pull_request:
paths:
- "pyproject.toml"
jobs:
unit_tests:
name: "Windows"
runs-on: windows-latest
timeout-minutes: 10
env:
# GitHub currently has 4 cores available for Windows 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
# Set up Windows with C++ for numpy
- name: "Visual Studio Command Prompt tool"
run: cmd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.platform-vcvars }}
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: "Cache pip"
uses: actions/cache@v3
with:
path: |
~\AppData\Local\pip\Cache
~\AppData\Local\Programs\Python\Python312\Lib\site-packages
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: "Install MultiQC"
run: pip install '.[dev]'
# NB: Download zip file instead of git clone, as Windows complains about reserved filenames and certain characters
- name: "Download test data"
run: |
curl -fsSL https://github.com/MultiQC/test-data/archive/main.zip -o test-data.zip
7z x test-data.zip -y -o"test-data"
- run: |
multiqc --strict -v test-data\test-data-main\data\modules\