-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (35 loc) · 1.04 KB
/
ci.yml
File metadata and controls
39 lines (35 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Continuous Integration Tests
on:
push:
branches:
- "main"
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install --no-cache-dir --upgrade -r requirements.txt
- name: Execute the black linter
run: black -l 100 -S . --check
- name: Execute Tests
run: pytest --envfile .env.test --cov=. test
build:
runs-on: ubuntu-latest
needs: [lint-and-test]
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the brstreamers-bot Docker image
run: |
docker build -t ghcr.io/br-dev-streamers/brdevstreamers:latest .
docker push ghcr.io/br-dev-streamers/brdevstreamers:latest