-
Notifications
You must be signed in to change notification settings - Fork 9
65 lines (62 loc) · 1.89 KB
/
Copy pathpython-test-conda-external.yml
File metadata and controls
65 lines (62 loc) · 1.89 KB
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
62
63
64
65
name: Unit tests external tools
on:
pull_request:
branches: [ main, master ]
jobs:
tests-external:
strategy:
matrix:
platform: [ubuntu-latest]
python-version: ['3.11', '3.12']
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
path: epytope
- uses: actions/checkout@v4
with:
repository: kohlbacherlab/fred-tools
token: ${{ secrets.FRED_CI_PAT }}
path: epytope-tools
- name: Install epytope-tools system dependencies
run:
apt-fast install -y tcsh
- name: epytope-tools post scripts
working-directory: ./epytope-tools/
run: |
./post.runner
- name: Activate epytope-tools
run: |
echo "$PWD/epytope-tools/bin" >> $GITHUB_PATH
echo "PATH=$PATH"
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
activate-environment: test
auto-activate-base: false
- name: Install epytope
shell: bash -el {0}
run: |
pip install ./epytope/
- name: Set up test environment
shell: bash -el {0}
run: |
pip install pytest
- name: Run Tests - Cleavage Prediction
working-directory: ./epytope/
shell: bash -el {0}
continue-on-error: true
run: pytest -v epytope/test/external/TestExternalCleavagePrediction.py || echo "Cleavage Prediction" >> FAILED_TESTS
- name: Run Tests - Epitope Prediction
working-directory: ./epytope/
shell: bash -el {0}
run: pytest -v epytope/test/external/TestExternalEpitopePrediction.py || echo "Epitope Prediction" >> FAILED_TESTS
- name: Validate Test Results
working-directory: ./epytope/
run: |
if [ -e FAILED_TESTS ]; then
echo "FAILED TESTS:" >&2
cat FAILED_TESTS
exit 1
fi