-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.45 KB
/
tests.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
49
50
51
52
53
54
55
56
57
58
59
60
61
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/