Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/GitHub actions ci #1099

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: Run Fence unit tests
on: push
jobs:
run_tests:
uses: uc-cdis/.github/.github/workflows/python_unit_test.yaml@8445812b85abd7246fc88c2db3726c292595708f
2 changes: 1 addition & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -368,5 +368,5 @@
}
]
},
"generated_at": "2023-05-15T16:30:09Z"
"generated_at": "2023-05-18T19:06:37Z"
}
1 change: 1 addition & 0 deletions tests/ci_commands_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
poetry run pytest -vv --cov=fence --cov=migrations/versions --cov-report xml tests
6 changes: 6 additions & 0 deletions tests/ci_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
psql -c 'SELECT version();' -U postgres
psql -U postgres -c "create database fence_test_tmp"

sudo rm -f /etc/boto.cfg
mkdir -p tests/resources/keys; cd tests/resources/keys; openssl genrsa -out test_private_key.pem 2048; openssl rsa -in test_private_key.pem -pubout -out test_public_key.pem
openssl genrsa -out test_private_key_2.pem 2048; openssl rsa -in test_private_key_2.pem -pubout -out test_public_key_2.pem