39 lines (33 loc) · 1.14 KB
/
main.yaml
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
# name: CI/CD
# on:
# push:
# branches:
# - master # Trigger the workflow only for pushes to the 'master' branch
# jobs: # specify the specific jobs that should be run as part of the workflow
# build:
# runs-on: ubuntu-latest
# steps: # For each job, you can specify the steps that should be run
# - uses: actions/checkout@v2
# - name: Set up Python 3.8
# uses: actions/setup-python@v2
# with:
# python-version: 3.8
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# - name: Lint tests
# run: |
# black --check .
# codespell --quiet-level=2 # --ignore-words-list="" --skip=""
# flake8 . --count --ignore=W503,E501 --max-line-length=91 --show-source --statistics
# - name: Run tests
# run: |
# pytest
# - name: Build Docker image
# run: |
# docker build -t khabdrick/test_app:v1 .
# - name: Push Docker image to registry
# run: |
# docker login -u khabdrick -p ${{secrets.password}}
# docker push khabdrick/test_app:v1