Add CI #11
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: Lint | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
lint: | |
name: Run Linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Copy .example.env to .env | |
run: cp .example.env .env | |
- name: Build images | |
run: make build | |
- name: Start services | |
run: make up | |
- name: Wait for app service to be ready | |
run: sleep 10 | |
- name: Docker container log | |
run: docker compose logs | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r app/requirements.txt | |
- name: Run linting | |
run: | | |
make lint |