-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.18 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Test
on:
push:
pull_request:
schedule:
- cron: '0 0 1,15 * *' # JST 9:00 on 1st and 15th every month
jobs:
main:
strategy:
matrix:
# os: ['ubuntu-22.04']
python-version: ['3.9', '3.12']
sample: [mapper, minsearch, exchange, exchange_mesh, pamc, bayes, transform]
fail-fast: false
name: ${{ matrix.sample }} with Python ${{ matrix.python-version }}
runs-on: 'ubuntu-22.04'
# runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: apt
run: |
sudo apt update
sudo apt install openmpi-bin libopenmpi-dev
- name: pip
run: |
python -m pip install -U pip
python -m pip install setuptools wheel
python -m pip install Cython
python -m pip install numpy scipy tomli mpi4py
python -m pip install physbo
- name: ${{ matrix.sample }}
run: |
cd ${GITHUB_WORKSPACE}/tests/${{ matrix.sample }}
sh ./do.sh