add openapi specifications #255
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: Python application | |
on: | |
push: | |
branches: '**' | |
pull_request: | |
branches: '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt; | |
- name: Run tests | |
env: | |
QISKIT_TOKEN: ${{ secrets.QISKIT_TOKEN }} | |
run: | | |
docker run -d -p 5040:5040 redis --port 5040 | |
sleep 5 | |
rq worker --url redis://localhost:5040 qiskit-service_execute > worker.log 2>&1 & | |
sleep 5 | |
python -m unittest discover test | |
- name: Store log | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: worker-log | |
path: worker.log |