replaced travis ci with github actions #1
Workflow file for this run
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..." | |
sleep 30 # Wait for 30 seconds to ensure the services are up | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- 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 |