Skip to content

Add test cases

Add test cases #73

Workflow file for this run

name: ci
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Download assert.sh
run: |
wget https://raw.githubusercontent.com/lehmannro/assert.sh/master/assert.sh
- name: Test Snakemake version
run: |
. assert.sh && assert "snakemake --version" "7.8.5"
- name: Print pylint version
run: |
pylint --version
- name: Build Dockerfile
run: |
docker build -t gu-pa-jus .
- name: List Docker images
run: |
docker images
- name: Start a gu-pa-jus container
run: |
docker run -d -it --name my-gu-pa-jus gu-pa-jus
- name: Grade the sample assignment (dry-run)
run: |
snakemake kadai --config kadainame="sample" -n
- name: Grade the sample assignment
run: |
snakemake kadai --config kadainame="sample" --cores 1 -F
- name: Test the sample output
run: |
diff results/summary_sample.csv results/summary_sample.csv.truth