add option to run multimodels template with array of balancing strategies #389
Workflow file for this run
This file contains 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: test-suite | |
on: [push, pull_request] | |
jobs: | |
test-template-and-lint: | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
architecture: 'x64' | |
- name: Install makita | |
run: | | |
pip install . | |
- name: Install ruff | |
run: | | |
pip install ruff | |
- name: set up environment | |
run: | | |
mkdir tmp | |
cd tmp | |
mkdir -p basic/data | |
mkdir -p arfi/data | |
mkdir -p multimodel/data | |
cp ../.github/workflows/test_data/labels.csv basic/data/labels.csv | |
cp ../.github/workflows/test_data/labels.csv arfi/data/labels.csv | |
cp ../.github/workflows/test_data/labels.csv multimodel/data/labels.csv | |
- name: Test makita templates | |
run: | | |
cd tmp/basic | |
asreview makita template basic | tee output.txt | |
grep -q "ERROR" output.txt && exit 1 || true | |
cd ../arfi | |
asreview makita template arfi | tee output.txt | |
grep -q "ERROR" output.txt && exit 1 || true | |
cd ../multimodel | |
asreview makita template multimodel | tee output.txt | |
grep -q "ERROR" output.txt && exit 1 || true | |
- name: Run ShellCheck | |
if: ${{ matrix.os != 'windows-latest' }} | |
uses: ludeeus/action-shellcheck@master | |
with: | |
scandir: './tmp' | |
env: | |
SHELLCHECK_OPTS: -e SC2148 | |
- name: Generate makita scripts | |
run: | | |
asreview makita add-script --all | |
- name: Lint python with ruff | |
run: | | |
ruff . |