Configure Toolforge health-check-path #4
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: | |
jobs: | |
test-defaults: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: pip install --upgrade pip cookiecutter | |
- run: | | |
cd "${TMPDIR:-/tmp}" | |
cookiecutter --no-input "${GITHUB_WORKSPACE}" | |
python3 -m venv venv | |
. venv/bin/activate | |
pip install -r example-tool/requirements.txt | |
python example-tool/app.py | |
test-all: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: pip install --upgrade pip cookiecutter | |
- run: | | |
cd "${TMPDIR:-/tmp}" | |
cookiecutter --no-input --config-file "${GITHUB_WORKSPACE}/.cookiecutterrc" "${GITHUB_WORKSPACE}" | |
python3 -m venv venv | |
. venv/bin/activate | |
pip install -r example-tool/requirements.txt | |
make -C example-tool |