feat: CI CD

Signed-off-by: Darren <git@darrennathanael.com>
This commit is contained in:
Darren 2022-03-03 03:41:34 -05:00
parent b61b3f3e5e
commit 1b35c3b8bc
No known key found for this signature in database
GPG Key ID: E145327EB72009B4
3 changed files with 30 additions and 29 deletions

View File

@ -1,25 +0,0 @@
name: Python CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox-travis coverage codacy-coverage
- name: Test with tox
run: |
tox

View File

@ -1,10 +1,11 @@
name: Docker Image CI
# Only run after test passes
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_run:
workflows: ["Python CI"]
types:
- completed
jobs:

25
.github/workflows/python.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Python CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox