From 7202375877f60ece6c1c4fa88b5a613663277ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Tue, 6 Aug 2024 11:33:33 +0100 Subject: [PATCH] chore: removed travis Started using pytest in automation. --- .github/workflows/main.yml | 16 ++++++++++++++++ .travis.yml | 10 ---------- pytest.ini | 3 +++ 3 files changed, 19 insertions(+), 10 deletions(-) delete mode 100644 .travis.yml create mode 100644 pytest.ini diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fe112ae..c35885c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,11 @@ jobs: - run: apt-get update && apt-get install -y libcups2-dev - run: python --version - run: python setup.py build + - run: | + pip install pytest + pytest - run: python setup.py test + if: matrix.python-version != '3.12' && matrix.python-version != 'latest' build-windows: name: Build Windows timeout-minutes: 10 @@ -53,7 +57,11 @@ jobs: - run: python --version - run: pip install setuptools - run: python setup.py build + - run: | + pip install pytest + pytest - run: python setup.py test + if: matrix.python-version != '3.12' build-macos: name: Build MacOS timeout-minutes: 10 @@ -74,7 +82,11 @@ jobs: - run: python --version - run: pip install setuptools - run: python setup.py build + - run: | + pip install pytest + pytest - run: python setup.py test + if: matrix.python-version != '3.12' build-macos-legacy: name: Build MacOS Legacy timeout-minutes: 10 @@ -101,4 +113,8 @@ jobs: - run: python --version - run: pip install setuptools - run: python setup.py build + - run: | + pip install pytest + pytest - run: python setup.py test + if: matrix.python-version != '3.12' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3bde87a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -dist: trusty -language: c -compiler: - - clang - - gcc -addons: - apt: - packages: - - libcups2-dev -script: ./autogen.sh && ./configure && make diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..ee4ad00 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +python_files = *.py +testpaths = src/python/npcolony_py/test