ci(dependabot): bump peter-evans/find-comment from 2 to 3 #177
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 Repo Construction | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Setup languages | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16.x' | |
# Run cookiecutter | |
- name: Install Cookiecutter | |
run: | | |
pip install cookiecutter | |
- name: Generate Repo | |
run: | | |
cookiecutter . --no-input | |
rm -Rf example/.github/workflows/ | |
# Check Python | |
- name: Install Python Dependencies | |
run: | | |
cd example/python/ | |
pip install .[test] | |
- name: Lint and Format Python | |
run: | | |
cd example/python/ | |
flake8 cdp_example_backend --count --verbose --show-source --statistics | |
black --check cdp_example_backend | |
# Check Web | |
- name: Install Web App Dependencies | |
run: | | |
cd example/web/ | |
npm i | |
- name: Build Web App | |
run: | | |
cd example/web/ | |
npm run build |