updated script for github actions #5
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: CI | |
on: | |
push: | |
# Sequence of patterns matched against refs/heads | |
branches: | |
# Push events on main branch | |
- main | |
- master | |
# Sequence of patterns matched against refs/tags | |
tags: '*' | |
jobs: | |
test: | |
name: ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.8' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
exclude: | |
- os: macOS-latest | |
arch: x86 | |
python-version: ["3.8"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
shell: bash -el {0} | |
run: | | |
conda create -n hsp python=3.8 | |
conda activate hsp | |
conda install matplotlib | |
pip install h5py | |
cd src/ | |
pip install . | |
- name: Run benchmark | |
shell: bash -el {0} | |
run: | | |
conda activate hsp | |
python3 search/search.py | |
python3 eval-2023/eval.py | |
python3 eval-2023/plot.py res.csv --size 300K | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Results on 300k | |
path: | | |
res.csv | |
result_300K.png |