Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

build(deps-dev): Bump @babel/traverse from 7.21.5 to 7.23.2 in /frontend #102

build(deps-dev): Bump @babel/traverse from 7.21.5 to 7.23.2 in /frontend

build(deps-dev): Bump @babel/traverse from 7.21.5 to 7.23.2 in /frontend #102

Workflow file for this run

name: chatter CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[rest]
- name: Lint with flake8
run: flake8 . --count --show-source --statistics
- name: Verify formatting with black
run: black . --check --diff
- name: Verify sort formatting with isort
run: isort **/*.py --check -v
- name: Install JavaScript modules
working-directory: ./frontend
# FIXME: We should just be installing ESLint-related modules.
run: |
npm install
- name: Run ESLint
working-directory: ./frontend
run: |
./node_modules/eslint/bin/eslint.js src/
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[rest]
- name: Create .env file
run: |
echo SECRET_KEY="${{ secrets.SECRET_TEST_KEY }}" >> .env
- name: Run tests
run: |
pytest