chore(deps): bump react and @types/react in /client #613
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: Server CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out repository | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
# Set up python | |
- name: Set up python | |
id: setup-python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
# Install Poetry | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
# Install dependencies if cache does not exist | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: | | |
cd server | |
poetry install --no-interaction --no-root | |
# Install your root project, if required | |
- name: Install project | |
run: | | |
cd server | |
poetry install --no-interaction | |
# Run format and lint suite | |
- name: Lint Backend Code | |
run: | | |
cd server | |
source .venv/bin/activate | |
ruff check . | |
check-type: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out repository | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
# Set up python | |
- name: Set up python | |
id: setup-python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
# Install Poetry | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
# Install dependencies if cache does not exist | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: | | |
cd server | |
poetry install --no-interaction --no-root | |
# Run type checking suite | |
- name: Check types | |
run: | | |
cd server | |
source .venv/bin/activate | |
mypy . | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out repository | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
# Set up python | |
- name: Set up python | |
id: setup-python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
# Install Poetry | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
# Install dependencies if cache does not exist | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: | | |
cd server | |
poetry install | |
# Run test suite | |
- name: Run tests | |
run: | | |
source server/.venv/bin/activate | |
pytest --cov-report term --cov-report html --cov=./server/ ./server/tests | |
# Upload coverage reports to Codecov | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |