changes for release 0.2.1 #53
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 | |
on: [push, pull_request, workflow_dispatch] #workflow_dispatch works only if its active in the main branch | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- 3.7 | |
- 3.8 | |
- 3.9 | |
- '3.10' | |
name: Test on Python v${{ matrix.python-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
architecture: x64 | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run Testbed API | |
run: docker run -d -p 4500:4500 ga4gh/ga4gh-testbed-api:0.1.0 | |
- name: Service Health Check | |
uses: jtalk/url-health-check-action@v2 | |
with: | |
url: http://localhost:4500/reports | |
follow-redirect: false | |
max-attempts: 6 | |
retry-delay: 10s | |
retry-all: true | |
- name: Run Tests | |
run: python -m pytest --cov | |
- name: Submit Coverage | |
if: ${{ matrix.python-version == '3.10' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
run: python -m coveralls |