@@ -2,101 +2,101 @@ name: tests_pytest
22on : [push, pull_request, workflow_dispatch]
33
44defaults :
5- run :
6- shell : bash -l {0}
5+ run :
6+ shell : bash -l {0}
77
88jobs :
9- check_versions_matches :
10- name : Check deeptools version matches galaxy tools
11- runs-on : ubuntu-latest
12- if : github.base_ref == 'master'
13- steps :
14- - uses : actions/checkout@v4
15- - name : Check path
16- run : find /home/runner/work/deepTools/deepTools -name "pyproject.toml"
17- - name : Get Version of Deeptools
18- run : echo "deeptools_version=$(grep "version" /home/runner/work/deepTools/deepTools/pyproject.toml | awk '{print substr($NF, 2, length($NF) - 2)}')" >> $GITHUB_ENV
19- - name : Get Version of Galaxy tools
20- run : echo "galaxy_deeptools_version=$(grep "token.*TOOL_VERSION" /home/runner/work/deepTools/deepTools/galaxy/wrapper/deepTools_macros.xml | awk -F '>|<' '{print $3}')" >> $GITHUB_ENV
21- - name : Versions
22- run : |
23- echo deeptools version=${deeptools_version}
24- echo deeptools version in galaxy=${galaxy_deeptools_version}
25- - name : Fail PR if versions not matching
26- run : |
27- if [ -z $galaxy_deeptools_version ]; then
28- echo "galaxy_deeptools_version not defined change the github action"
29- exit 1
30- fi
31- if [ -z $deeptools_version ]; then
32- echo "deeptools_version not defined change the github action"
33- exit 1
34- fi
35- if [ "$galaxy_deeptools_version" != "$deeptools_version" ]; then
36- echo "versions do not match"
37- exit 1
38- fi
39- build-linux :
40- name : Test on Linux
41- runs-on : ubuntu-latest
42- strategy :
43- matrix :
44- python-version : ['3.9','3.10', ' 3.11', ' 3.12', ' 3.13' ]
45- steps :
46- - uses : actions/checkout@v4
47- - uses : actions/setup-python@v5
48- with :
49- python-version : ${{ matrix.python-version }}
50- cache : ' pip'
51- - name : Install Rust
52- uses : actions-rust-lang/setup-rust-toolchain@v1
53- - name : build deeptools
54- run : |
55- python -m venv venv
56- source venv/bin/activate
57- pip install maturin
58- maturin develop --release --extras actions
59- - name : test deeptools
60- run : |
61- source venv/bin/activate
62- pytest -v
63- - name : build wheel
64- run : |
65- source venv/bin/activate
66- python -m build
67- - name : test wheel
68- run : |
69- source venv/bin/activate
70- pip install dist/*whl
71- build-osx :
72- name : Test on OSX
73- runs-on : macOS-latest
74- strategy :
75- matrix :
76- python-version : ['3.9','3.10', ' 3.11', ' 3.12', ' 3.13' ]
77- steps :
78- - uses : actions/checkout@v4
79- - uses : actions/setup-python@v5
80- with :
81- python-version : ${{ matrix.python-version }}
82- cache : ' pip'
83- - name : Install Rust
84- uses : actions-rust-lang/setup-rust-toolchain@v1
85- - name : build deeptools
86- run : |
87- python -m venv venv
88- source venv/bin/activate
89- pip install maturin
90- maturin develop --release --extras actions
91- - name : test deeptools
92- run : |
93- source venv/bin/activate
94- pytest -v
95- - name : build wheel
96- run : |
97- source venv/bin/activate
98- python -m build
99- - name : test wheel
100- run : |
101- source venv/bin/activate
102- pip install dist/*whl
9+ check_versions_matches :
10+ name : Check deeptools version matches galaxy tools
11+ runs-on : ubuntu-latest
12+ if : github.base_ref == 'master'
13+ steps :
14+ - uses : actions/checkout@v4
15+ - name : Check path
16+ run : find /home/runner/work/deepTools/deepTools -name "pyproject.toml"
17+ - name : Get Version of Deeptools
18+ run : echo "deeptools_version=$(grep "version" /home/runner/work/deepTools/deepTools/pyproject.toml | awk '{print substr($NF, 2, length($NF) - 2)}')" >> $GITHUB_ENV
19+ - name : Get Version of Galaxy tools
20+ run : echo "galaxy_deeptools_version=$(grep "token.*TOOL_VERSION" /home/runner/work/deepTools/deepTools/galaxy/wrapper/deepTools_macros.xml | awk -F '>|<' '{print $3}')" >> $GITHUB_ENV
21+ - name : Versions
22+ run : |
23+ echo deeptools version=${deeptools_version}
24+ echo deeptools version in galaxy=${galaxy_deeptools_version}
25+ - name : Fail PR if versions not matching
26+ run : |
27+ if [ -z $galaxy_deeptools_version ]; then
28+ echo "galaxy_deeptools_version not defined change the github action"
29+ exit 1
30+ fi
31+ if [ -z $deeptools_version ]; then
32+ echo "deeptools_version not defined change the github action"
33+ exit 1
34+ fi
35+ if [ "$galaxy_deeptools_version" != "$deeptools_version" ]; then
36+ echo "versions do not match"
37+ exit 1
38+ fi
39+ build-linux :
40+ name : Test on Linux
41+ runs-on : ubuntu-latest
42+ strategy :
43+ matrix :
44+ python-version : ["3.10", " 3.11", " 3.12", " 3.13", "3.14" ]
45+ steps :
46+ - uses : actions/checkout@v4
47+ - uses : actions/setup-python@v5
48+ with :
49+ python-version : ${{ matrix.python-version }}
50+ cache : " pip"
51+ - name : Install Rust
52+ uses : actions-rust-lang/setup-rust-toolchain@v1
53+ - name : build deeptools
54+ run : |
55+ python -m venv venv
56+ source venv/bin/activate
57+ pip install maturin
58+ maturin develop --release --extras actions
59+ - name : test deeptools
60+ run : |
61+ source venv/bin/activate
62+ pytest -v
63+ - name : build wheel
64+ run : |
65+ source venv/bin/activate
66+ python -m build
67+ - name : test wheel
68+ run : |
69+ source venv/bin/activate
70+ pip install dist/*whl
71+ build-osx :
72+ name : Test on OSX
73+ runs-on : macOS-latest
74+ strategy :
75+ matrix :
76+ python-version : ["3.10", " 3.11", " 3.12", " 3.13", "3.14" ]
77+ steps :
78+ - uses : actions/checkout@v4
79+ - uses : actions/setup-python@v5
80+ with :
81+ python-version : ${{ matrix.python-version }}
82+ cache : " pip"
83+ - name : Install Rust
84+ uses : actions-rust-lang/setup-rust-toolchain@v1
85+ - name : build deeptools
86+ run : |
87+ python -m venv venv
88+ source venv/bin/activate
89+ pip install maturin
90+ maturin develop --release --extras actions
91+ - name : test deeptools
92+ run : |
93+ source venv/bin/activate
94+ pytest -v
95+ - name : build wheel
96+ run : |
97+ source venv/bin/activate
98+ python -m build
99+ - name : test wheel
100+ run : |
101+ source venv/bin/activate
102+ pip install dist/*whl
0 commit comments