SH-75 Investigate issues (#55) #348
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 app | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
NODE_VERSION: 19.0.1 | |
PYTHON_VERSION: 3.8.12 | |
jobs: | |
integration-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Dependencies | |
run: npm install | |
- name: Prisma generate | |
run: npm run prisma:generate | |
- name : Build project | |
run: npm run build | |
- name: Set up Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r apps/shelter-ml/requirements.txt | |
- name: Lint with Ruff | |
run: | | |
pip install ruff | |
ruff --output-format=github . | |
continue-on-error: true | |
- name: Install tox and any other packages | |
run: pip install tox | |
- name: Run tox | |
run: tox -e py | |