diff options
author | ThaHobbyist | 2024-05-11 18:04:49 +0530 |
---|---|---|
committer | ThaHobbyist | 2024-05-11 18:04:49 +0530 |
commit | f15ffbde255ecf59fc1ea67a7b62b27ab43f500d (patch) | |
tree | c6f57eede5e003536139c43ea61f09651520259e | |
parent | 1c95684c5b42306d6dbb2a0a75a891470a4c4ced (diff) | |
download | pyvnt-f15ffbde255ecf59fc1ea67a7b62b27ab43f500d.tar.gz pyvnt-f15ffbde255ecf59fc1ea67a7b62b27ab43f500d.tar.bz2 pyvnt-f15ffbde255ecf59fc1ea67a7b62b27ab43f500d.zip |
Added github action to run automated tests
-rw-r--r-- | .github/workflows/python-testing.yml | 35 |
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 |