Skip to content

Commit

Permalink
Rich-codex screenshot in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Jul 19, 2022
1 parent 7a6787b commit f7694c0
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/multiqc_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,26 @@ jobs:
timeout-minutes: 10

steps:
# Check out MultiQC code
- uses: actions/checkout@v2
- name: Check out MultiQC code
uses: actions/checkout@v2

# Set up Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

# Update pip and install beautifulsoup4 for CI tests (CSP checking)
# For CSP checking
- name: Install dependencies for CI tests
run: |
python -m pip install --upgrade pip setuptools beautifulsoup4
run: python -m pip install --upgrade pip setuptools beautifulsoup4

# Install MultiQC
- name: Install MultiQC
run: pip install .

# Fetch the MultiQC test data
- name: Download test data
run: |
git clone https://github.com/ewels/MultiQC_TestData.git test_data
uses: actions/checkout@v3
with:
repository: ewels/MultiQC_TestData
path: test_data

# Run all of the tests!
- name: Special case input data
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docs screenshots
on: [push]

jobs:
rich_codex:
runs-on: ubuntu-latest
steps:
- name: Check out MultiQC code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3

- name: Install MultiQC
run: pip install .

- name: Download test data
run: |
wget https://github.com/ewels/MultiQC_TestData/archive/refs/heads/master.zip
unzip master.zip
mv MultiQC_TestData-master/ test_data/
- name: Generate terminal images with rich-codex
uses: ewels/rich-codex@v1
with:
clean_img_paths: |
docs/images/screenshots/*.svg
test_data
commit_changes: "true"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ multiqc .
That's it! MultiQC will scan the specified directory (`.` is the current dir)
and produce a report detailing whatever it finds.

<!-- RICH-CODEX fake_command: "multiqc ." -->

![`cd test_data/data/modules/fastqc/v0.10.1 && multiqc .`](docs/images/screenshots/fastqc-run.svg)

The report is created in `multiqc_report.html` by default. Tab-delimited data
files are also created in `multiqc_data/`, containing extra information.
These can be easily inspected using Excel (use `--data-format` to get `yaml`
Expand Down

0 comments on commit f7694c0

Please sign in to comment.