Tests #8
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: Tests | |
on: push | |
jobs: | |
tests: | |
name: Run tests | |
environment: test | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
#- name: Set up Python | |
# uses: actions/setup-python@v5 | |
# with: | |
# python-version: '3.12' | |
- name: Setup miniforge | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: 3.12 | |
miniforge-version: "latest" | |
channels: bioconda,conda-forge | |
channel-priority: true | |
- name: Conda Info | |
shell: bash -el {0} | |
run: | | |
conda info | |
conda env list | |
conda config --show-sources | |
- name: Setup Poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: 1.8.3 | |
- name: Install project with Poetry | |
run: poetry install --compile | |
- name: Run pip list and conda list | |
run: | | |
pip list | |
conda list | |
#- name: Run nox | |
# run: poetry run nox | |
- name: Create .blast2galaxy.toml | |
env: | |
API_KEY_GALAXY_WEB_IPK: ${{secrets.API_KEY_GALAXY_WEB_IPK}} | |
API_KEY_USEGALAXYEU: ${{secrets.API_KEY_USEGALAXYEU}} | |
run: | | |
cp test_data/.blast2galaxy.toml ~/.blast2galaxy.toml | |
sed -i "s/API_KEY_USEGALAXYEU/$API_KEY_USEGALAXYEU/g" ~/.blast2galaxy.toml | |
sed -i "s/API_KEY_GALAXY_WEB_IPK/$API_KEY_GALAXY_WEB_IPK/g" ~/.blast2galaxy.toml | |
- name: Run tests | |
run: poetry run pytest -s tests/ |