-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (89 loc) · 2.9 KB
/
test-pythia.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Build and test PyPythia
run-name: Build and run the tests of the PyPythia python library.
on: [push]
jobs:
Run-Pythia-Tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.11"]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup RAxML-NG and RAxML-NG env variable
uses: ./.github/actions/setup-raxmlng
- name: Install Pythia and setup requirements
run: |
pip install -e .
pip install pytest
rm tests/test_config.py
echo "RAXMLNG_COMMAND = '${{ env.raxmlng }}'" > tests/test_config.py
cat tests/test_config.py
- name: Run Pythia tests
run: |
PYTHONPATH=. pytest
Install-using-conda:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.11"]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Conda
uses: mamba-org/setup-micromamba@v1
with:
environment-file: etc/environment.yml
cache-environment: true
create-args:
python=${{ matrix.python-version }}
- name: Setup RAxML-NG and RAxML-NG env variable
uses: ./.github/actions/setup-raxmlng
- name: Test Pythia installation by running the CLI
uses: ./.github/actions/test-pythia-cli
Install-using-pip:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup RAxML-NG and RAxML-NG env variable
uses: ./.github/actions/setup-raxmlng
- name: Setup lightgbm requirements
uses: ./.github/actions/setup-lightgbm
- name: Install Pythia using pip
run: |
pip install git+https://github.com/tschuelia/PyPythia.git
- name: Test Pythia installation by running the CLI
uses: ./.github/actions/test-pythia-cli
Install-from-source:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup RAxML-NG and RAxML-NG env variable
uses: ./.github/actions/setup-raxmlng
- name: Install from source
run: |
pip install .
- name: Test Pythia installation by running the CLI
uses: ./.github/actions/test-pythia-cli