diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..93311a4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + pull_request: + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install .[tests] + + - name: Unittests + run: | + pytest -v tests diff --git a/setup.py b/setup.py index a5d8ad4..51ac6f3 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,8 @@ this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() +tests_require = (this_directory / "requirements-dev.txt").read_text().splitlines() + setup( name="artifactory-cleanup", version="1.0.18", @@ -51,4 +53,5 @@ ], python_requires=">=3.6", include_package_data=True, + extras_require={"tests": tests_require}, )