Skip to content

Commit 408e034

Browse files
authored
Merge pull request #16 from phac-nml/dev
Merge dev into main (v2.0.0)
2 parents 2aba1da + 7bb5bfc commit 408e034

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+640
-2797
lines changed

.ci/Dockerfile

Lines changed: 0 additions & 90 deletions
This file was deleted.

.ci/run_flake8.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

.ci/run_tests.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.ci/slurm.conf

Lines changed: 0 additions & 52 deletions
This file was deleted.

.ci/slurm.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Python application
5+
6+
on: [push]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python 3.10
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: "3.10"
22+
- name: Install BLAST+
23+
run: |
24+
sudo apt-get -qqy install ncbi-blast+
25+
- name: Install Python and Dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install flake8 pytest tox numpy scipy biopython
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
- name: Lint with flake8
31+
run: |
32+
# stop the build if there are Python syntax errors or undefined names
33+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+
- name: Test with pytest
37+
run: |
38+
pytest

0 commit comments

Comments
 (0)