fix: Add missing --arg in script to update config map (#66) #37
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
name: Test Drs-filer API Endpoints | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Build and run Docker Compose | |
run: docker compose up --build -d | |
- name: Wait for the services to be ready | |
run: | | |
echo "Waiting for the services to be ready..." | |
for i in {1..10}; do | |
if curl -sSf http://localhost:8080/ga4gh/drs/v1 > /dev/null; then | |
echo "Service is up!" | |
break | |
fi | |
echo "Waiting for the service to be ready..." | |
sleep 3 | |
done | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest requests | |
- name: Test with pytest | |
run: | | |
pytest tests/test.py -v -p no:warnings | |
env: | |
DRS_FILER_URL: http://localhost:8080/ga4gh/drs/v1 | |
- name: Stop and remove Docker Compose services | |
run: docker compose down |