Improve RDF linking and curations #284
Workflow file for this run
This file contains hidden or 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: Docker build and web service test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build image | |
| run: | | |
| sed '/RUN python -m pip install bioregistry\[web\]/{ | |
| a\WORKDIR /app | |
| a\COPY . /app | |
| a\RUN python -m pip install -e .[web] | |
| d | |
| }' Dockerfile > Dockerfile.ci | |
| docker build -f Dockerfile.ci -t bioregistry:test . | |
| - name: Run container and check | |
| run: | | |
| docker run -d -p 8766:8766 --name bioregistry bioregistry:test | |
| for i in {1..10}; do | |
| status=$(curl -s -o /dev/null -w '%{http_code}' http://localhost:8766 || true) | |
| if [ "$status" -eq 200 ]; then | |
| break | |
| fi | |
| sleep 3 | |
| done | |
| docker logs bioregistry | |
| docker stop bioregistry | |
| if [ "$status" -ne 200 ]; then | |
| echo "Service did not return 200" >&2 | |
| exit 1 | |
| fi |