Skip to content

Commit 1595add

Browse files
authored
Merge pull request #940 from hubmapconsortium/Derek-Furst/travis-to-github
Derek furst/travis to GitHub
2 parents 23d964b + f1c7be4 commit 1595add

File tree

6 files changed

+41
-47
lines changed

6 files changed

+41
-47
lines changed

.github/workflows/python-ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches: [ "main", "dev-integrate" ]
6+
pull_request:
7+
branches: [ "main", "dev-integrate" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
submodules: 'recursive'
21+
22+
- name: Set up Python 3.9
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.9"
26+
27+
- name: Upgrade Pip
28+
run: python -m pip install --upgrade pip
29+
working-directory: src
30+
31+
- name: Install Dependencies
32+
run: |
33+
pip install -r requirements.txt
34+
pip install -r requirements-dev.txt
35+
working-directory: src
36+
37+
- name: Run tests
38+
run: ./test.sh

.travis.yml

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

src/hubmap_translation/addl_index_transformations/portal/test-utils.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
11
#!/usr/bin/env bash
22
set -o errexit
33

4-
. test-utils.sh
54

65
cd `dirname $0`
76

8-
start portal/flake8
9-
flake8 \
10-
|| die "Try: autopep8 --in-place --aggressive -r $PWD"
11-
end portal/flake8
12-
13-
start portal/doctests
7+
flake8
148
cd ../../../
159
for F in hubmap_translation/addl_index_transformations/portal/*.py; do
1610
CMD="python -m doctest -o REPORT_NDIFF $F"
1711
echo $CMD
1812
eval $CMD
1913
done
2014
cd -
21-
end portal/doctests
22-
23-
start portal/pytest
2415
cd ../../../
2516
PYTHONPATH="src:$PYTHONPATH" pytest -vv --log-cli-level WARN
2617
cd -
27-
end portal/pytest

src/requirements-dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
flake8==3.8.2
2-
pytest==6.2.2
1+
flake8==7.3.0
2+
pytest==8.4.2
33
pytest-mock>=1.11.1

test-utils.sh

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

0 commit comments

Comments
 (0)