summaryrefslogtreecommitdiff
path: root/.github/workflows/python-package.yaml
diff options
context:
space:
mode:
authorBastian Venthur <venthur@debian.org>2022-04-24 15:00:03 +0200
committerBastian Venthur <venthur@debian.org>2022-04-24 15:00:03 +0200
commitd44d4a384fe9508f865d726b684b4cdbad0d378f (patch)
tree51591bd95872a4622c930fc4f8ec766bf45ee6e8 /.github/workflows/python-package.yaml
python-debianbts (3.2.1) unstable; urgency=medium
* Fix "changelog missing in binary package" Removed native CHANGELOG.md from dh_installdocs, as it prevented the shipping of the Debian changelog. (Closes: #949210) * Updated build system * Added sphinx documentation (readthedocs) * use pytest-xdist to speed up testing [dgit import package python-debianbts 3.2.1]
Diffstat (limited to '.github/workflows/python-package.yaml')
-rw-r--r--.github/workflows/python-package.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml
new file mode 100644
index 0000000..12ba6fd
--- /dev/null
+++ b/.github/workflows/python-package.yaml
@@ -0,0 +1,39 @@
+name: CI/CD Pipeline
+
+on:
+ - push
+ - pull_request
+
+jobs:
+ test:
+ name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - ubuntu-latest
+ - macos-latest
+ - windows-latest
+ python-version:
+ - 3.6
+ - 3.7
+ - 3.8
+ - 3.9
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Run linter
+ run: |
+ make lint
+
+ - name: Run tests
+ run: |
+ make test