change license GPLv3 -> MPL-2.0 #11
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 | |
on: [push, pull_request] | |
jobs: | |
main: | |
strategy: | |
matrix: | |
# Python 3.6 is not supported on Ubuntu 22.04 | |
os: ['ubuntu-22.04', 'ubuntu-20.04'] | |
python-version: ['3.6', '3.9', '3.12'] | |
sample: [mapper, minsearch, exchange, exchange_mesh, pamc, bayes, transform] | |
exclude: | |
- os: 'ubuntu-22.04' | |
python-version: '3.6' | |
- os: 'ubuntu-20.04' | |
python-version: '3.9' | |
- os: 'ubuntu-20.04' | |
python-version: '3.12' | |
fail-fast: false | |
name: ${{ matrix.sample }} with Python ${{ matrix.python-version }} | |
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 |