summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThaHobbyist2024-05-11 18:04:49 +0530
committerThaHobbyist2024-05-11 18:04:49 +0530
commitf15ffbde255ecf59fc1ea67a7b62b27ab43f500d (patch)
treec6f57eede5e003536139c43ea61f09651520259e
parent1c95684c5b42306d6dbb2a0a75a891470a4c4ced (diff)
downloadpyvnt-f15ffbde255ecf59fc1ea67a7b62b27ab43f500d.tar.gz
pyvnt-f15ffbde255ecf59fc1ea67a7b62b27ab43f500d.tar.bz2
pyvnt-f15ffbde255ecf59fc1ea67a7b62b27ab43f500d.zip
Added github action to run automated tests
-rw-r--r--.github/workflows/python-testing.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/python-testing.yml b/.github/workflows/python-testing.yml
new file mode 100644
index 0000000..f1dd709
--- /dev/null
+++ b/.github/workflows/python-testing.yml
@@ -0,0 +1,35 @@
+# This workflow will install Python dependencies and run tests with a variety of Python versions
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
+
+name: Package testing
+
+on:
+ push:
+ branches: [ "main", "dev" ]
+ pull_request:
+ branches: [ "main", "dev" ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: ["3.9", "3.10", "3.11"]
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v3
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ python -m pip install pytest anytree setuptools wheel
+ python setup.py sdist bdist_wheel
+ python setup.py install
+ - name: Test with pytest
+ run: |
+ pytest -v \ No newline at end of file