workflow fix #2
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: Multi-OS Python Version Test | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
build-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ['3.10',' 3.11',' 3.12'] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install External Software | |
run: | | |
wget http://www.clustal.org/omega/clustalo-1.2.4-Ubuntu-x86_64 -O clustalo && chmod +x clustalo | |
wget https://mafft.cbrc.jp/alignment/software/mafft-7.520-linux.tgz -O mafft.tgz && tar -xzvf mafft.tgz && chmod +x mafft-linux64/mafftdir/bin/mafft | |
export PATH=$PATH:$PWD/mafft-linux64/mafftdir/bin/:$PWD | |
export MAFFT_BINARIES=$PWD/mafft-linux64/mafftdir/libexec/ | |
clustalo --version # For debugging clustalo version | |
mafft --version # For debugging mafft version | |
- name: Install dependencies | |
run: | | |
python --version | |
python -m pip install ".[full]" --no-cache-dir | |
python -c "import qsprpred; print(qsprpred.__version__)" # For debugging package version | |
python -m pip install pytest | |
python -m pip install jupyterlab | |
python -m pip freeze # For debugging environment | |
- name: Run tests | |
run: pytest qsprpred | |
- name: Run notebooks | |
run: | | |
cd clitest && ./run.sh | |
cd ../tutorial && ./run_all.sh |