|
85 | 85 | http_server_port: ${{ inputs.http_server_port }} |
86 | 86 | http_server_app_module: ${{ inputs.http_server_app_module }} |
87 | 87 | http_server_enter_point: ${{ inputs.http_server_enter_point }} |
88 | | - |
89 | | - |
90 | | -# steps: |
91 | | -# - uses: actions/checkout@v3 |
92 | | -# |
93 | | -# - name: Install Python ${{ matrix.python-version }} |
94 | | -# uses: actions/setup-python@v4 |
95 | | -# with: |
96 | | -# python-version: ${{ matrix.python-version }} |
97 | | -# |
98 | | -# - name: Install Python dependencies |
99 | | -# run: | |
100 | | -# python -m pip install --upgrade pip |
101 | | -# pip install -U pip |
102 | | -# pip install -U flask |
103 | | -# pip install -U gunicorn |
104 | | -# pip install -U poetry |
105 | | -# |
106 | | -# - name: Build Python runtime environment by Poetry |
107 | | -# run: | |
108 | | -# poetry --version |
109 | | -# poetry install |
110 | | -# |
111 | | -# - name: Setup and run HTTP server for testing |
112 | | -# if: ${{ inputs.setup_http_server == true }} |
113 | | -# run: gunicorn --bind ${{ inputs.http_server_host }}:${{ inputs.http_server_port }} '${{ inputs.http_server_app_module }}:${{ inputs.http_server_enter_point }}' --daemon |
114 | | -# |
115 | | -# - name: Test to send HTTP request to sample HTTP server |
116 | | -# if: ${{ inputs.setup_http_server == true }} |
117 | | -# run: curl "http://${{ inputs.http_server_host }}:${{ inputs.http_server_port }}/exchangeReport/STOCK_DAY?response=json&date=20170101&stockNo=2331" |
118 | | -# |
119 | | -# - name: Run tests with pytest |
120 | | -# run: poetry run pytest ${{ matrix.test-path }} |
121 | | -# continue-on-error: true |
122 | | -# |
123 | | -# - name: Rename the code coverage result file |
124 | | -# run: mv ./.coverage ./.coverage.${{ inputs.test_type }}.${{ matrix.os }}-${{ matrix.python-version }} |
125 | | -# |
126 | | -# - name: Upload code coverage result file |
127 | | -# uses: actions/upload-artifact@v3 |
128 | | -# with: |
129 | | -# name: coverage |
130 | | -# path: .coverage.${{ inputs.test_type }}.${{ matrix.os }}-${{ matrix.python-version }} |
131 | | -# if-no-files-found: error |
0 commit comments