mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-14 15:42:51 +11:00
feat: CI CD
Signed-off-by: Darren <git@darrennathanael.com>
This commit is contained in:
parent
b61b3f3e5e
commit
1b35c3b8bc
3 changed files with 30 additions and 29 deletions
25
.github/workflows/building.yml
vendored
25
.github/workflows/building.yml
vendored
|
@ -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
|
|
@ -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
25
.github/workflows/python.yml
vendored
Normal 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
|
Loading…
Reference in a new issue