From d444b4a42db65110c2b18d36bc47366c3a8bafdd Mon Sep 17 00:00:00 2001 From: Kai Knoblich <43905002+knobix@users.noreply.github.com> Date: Sat, 18 Sep 2021 14:13:39 +0200 Subject: [PATCH] Update tests for FreeBSD and make these more visible by adding a badge (#841) * Update tests for FreeBSD * Use more recent images (12.2- and 13.0-RELEASE because 12.1-RELEASE is End-of-Life since 31st January 2021) * Test against Python 3.8 which is the default in the FreeBSD ports tree at the moment * Add a badge for FreeBSD tests * Make the FreeBSD tests visible (where Cirrus CI still needs to be set up for the repository) --- .cirrus.yml | 25 ++++++++++++++----------- README.rst | 3 +++ 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 183dbbb1..488ce791 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,18 +1,21 @@ -freebsd_instance: - image_family: freebsd-12-1 - task: + matrix: + freebsd_instance: + image_family: freebsd-13-0 + freebsd_instance: + image_family: freebsd-12-2 + install_script: - - pkg install -y python37 py37-sqlite3 + - pkg install -y python38 py38-sqlite3 # Print the Python version, only to be sure we are running the version we want - - python3.7 -c 'import platform; print("Python", platform.python_version())' + - python3.8 -c 'import platform; print("Python", platform.python_version())' # Check SQLite3 is installed - - python3.7 -c 'import sqlite3; print("SQLite3", sqlite3.version)' + - python3.8 -c 'import sqlite3; print("SQLite3", sqlite3.version)' setup_script: - - python3.7 -m ensurepip - - python3.7 -m pip install -U pip - - python3.7 -m pip install -r requirements-tests.txt + - python3.8 -m ensurepip + - python3.8 -m pip install -U pip + - python3.8 -m pip install -r requirements-tests.txt lint_script: - - python3.7 -m flake8 docs src tests tools + - python3.8 -m flake8 docs src tests tools tests_script: - - python3.7 -bb -m pytest tests + - python3.8 -bb -m pytest tests diff --git a/README.rst b/README.rst index 9593a3a1..a777fbc4 100755 --- a/README.rst +++ b/README.rst @@ -2,6 +2,7 @@ Watchdog ======== |Build Status| +|CirrusCI Status| Python API and shell utilities to monitor file system events. @@ -301,3 +302,5 @@ to do: .. |Build Status| image:: https://github.com/gorakhargosh/watchdog/workflows/Tests/badge.svg :target: https://github.com/gorakhargosh/watchdog/actions?query=workflow%3ATests +.. |CirrusCI Status| image:: https://api.cirrus-ci.com/github/gorakhargosh/watchdog.svg + :target: https://cirrus-ci.com/github/gorakhargosh/watchdog/