-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@olga24912 found that running StringDecomposer outside of the git repo (for example, after installation) fails. Reason: git hash, reported in the log, is obtained with a explicit call to git at every execution (contrary to, for example, saving it during make and invoking the saved hash during every launch). This PR: Adds a github action test that ensures correct execution that is initialized outside of the git repo; Disables report of git hash in the log. In the future, we should find a better strategy to report git hash. See also: #15
- Loading branch information
Showing
5 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Install with test launch not in root directory | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.5, 3.6, 3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Add conda to system path | ||
run: | | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
conda config --add channels defaults | ||
conda config --add channels bioconda | ||
conda config --add channels conda-forge | ||
conda install -y --file requirements.txt | ||
- name: Install | ||
run: | | ||
make install | ||
make uninstall | ||
- name: Run test dataset | ||
run: | | ||
mkdir test && cd test | ||
make -C .. test_launch | ||
- name: Run test dataset w/ install | ||
run: | | ||
cd test | ||
make -C .. test_launch_install | ||
make -C .. uninstall | ||
- name: Run test dataset w/ binary | ||
run: | | ||
cd test | ||
make -C .. install | ||
stringdecomposer ../stringdecomposer/test_data/read.fa ../stringdecomposer/test_data/DXZ1_star_monomers.fa -o . --second-best | ||
make -C .. uninstall | ||
- name: Run test dataset w/ binary 2 | ||
run: | | ||
make install | ||
cd test | ||
stringdecomposer ../stringdecomposer/test_data/read.fa ../stringdecomposer/test_data/DXZ1_star_monomers.fa -o . --second-best | ||
make -C .. uninstall | ||
- name: Run test dataset w/ binary 3 | ||
run: | | ||
make install | ||
cd .. | ||
mkdir test && cd test | ||
stringdecomposer ../stringdecomposer/stringdecomposer/test_data/read.fa ../stringdecomposer/stringdecomposer/test_data/DXZ1_star_monomers.fa -o . --second-best | ||
make -C ../stringdecomposer uninstall |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.1" | ||
__version__ = "1.1.1" |
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
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