| name: Test Style Transfer |
|
|
| on: |
| push: |
| branches: [ main ] |
|
|
| jobs: |
| build: |
| runs-on: ubuntu-latest |
|
|
| steps: |
| - uses: actions/checkout@v3 |
| - uses: actions/setup-python@v3 |
| with: |
| python-version: '3.7' |
|
|
| - name: Install dependencies |
| run: pip install -r requirements.txt |
|
|
| - name: Run test.py |
| run: |
| python test.py --content_image images/content/cat.jpg --style_image images/art/asheville.jpg |
|
|
| - name: Install streamlit dependencies |
| run: | |
| pip install -r streamlit_app/requirements.txt |
| |
| - name: Run streamlit app |
| run: | |
| nohup streamlit run streamlit_app/app.py & |
| sleep 5 |
| curl http://localhost:8501 |
| |