Python action #42
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: Build and Test Minicrawler | |
on: | |
- workflow_dispatch | |
- pull_request | |
- push | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/prepare | |
- uses: ./.github/actions/build | |
- name: make check | |
run: make check | |
integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/prepare | |
- uses: ./.github/actions/build | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: install python dependencies | |
run: pip install httpbin gunicorn gevent | |
- name: run httpbin server | |
run: | | |
gunicorn -b 0.0.0.0:80 httpbin:app -k gevent & | |
- name: make integration | |
run: | | |
php -v | |
cd ./integration-tests | |
make check HTTPIE_URL=http://0.0.0.0:80 | |
cat integration-tests/test-suite.log | |
try: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/prepare | |
- uses: ./.github/actions/build | |
- name: try run minicrawler | |
run: ./minicrawler5 https://www.testomato.com/humans.txt |