-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from EGA-archive/cleanup
Merging to move forward.
- Loading branch information
Showing
45 changed files
with
262 additions
and
1,818 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,18 @@ | ||
.coverage | ||
.coveragerc | ||
.DS_Store | ||
.git | ||
.github | ||
.gitignore | ||
.tox | ||
CONTRIBUTING.md | ||
deploy | ||
Dockerfile | ||
docs | ||
lega.egg-info | ||
LICENSE | ||
README.md | ||
readthedocs.yml | ||
tests | ||
tmp | ||
tox.ini |
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,63 @@ | ||
name: "Testsuite" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- 'tests/*' | ||
|
||
jobs: | ||
testsuite: | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
# os: [ubuntu-latest, macOS-latest] | ||
os: [ubuntu-latest] | ||
bootstrap: ['', '--archive-backend posix'] | ||
# bats: ['integration', 'security', 'robustness'] | ||
bats: ['integration'] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
name: | | ||
${{ matrix.bats }} tests (bootstrap options: '${{ matrix.bootstrap }}') | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: 3.6 | ||
- name: (re)Build docker image | ||
run: | | ||
docker build -f Dockerfile \ | ||
--build-arg LEGA_GID=1000 \ | ||
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ | ||
--build-arg SOURCE_COMMIT=$(git rev-parse --short HEAD) \ | ||
--tag egarchive/lega-base:latest \ | ||
. | ||
- name: Install required tools | ||
run: | | ||
git clone https://github.com/bats-core/bats-core.git | ||
pushd bats-core | ||
git checkout v1.1.0 | ||
sudo ./install.sh /usr/local | ||
popd | ||
pip install git+https://github.com/EGA-archive/crypt4gh.git | ||
pip install pika==1.0.1 | ||
sudo apt-get install expect | ||
- name: Bootstrap a LocalEGA (connected to a fake CentralEGA) with '${{ matrix.bootstrap }}' | ||
run: | | ||
pushd deploy | ||
bootstrap/run.sh ${{ matrix.bootstrap }} || { cat private/.err; exit 1; } | ||
docker-compose up -d | ||
docker-compose ps | ||
sleep 80 | ||
popd | ||
- name: Running ${{ matrix.bats }} testsuite | ||
run: | | ||
bats tests/${{ matrix.bats }} | ||
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,39 @@ | ||
name: "Unit Tests" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- 'tests/*' | ||
|
||
jobs: | ||
unit_tests: | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
#os: [ubuntu-latest, macOS-latest] | ||
os: [ubuntu-latest] | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
name: Unit tests with Python ${{ matrix.python-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install required tools | ||
run: | | ||
sudo apt-get install libpq-dev | ||
pip install --upgrade pip | ||
pip install tox | ||
- name: tox | ||
run: | | ||
tox | ||
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.