From cc9ae4ed44c0265cd7d58578782fa89973455eba Mon Sep 17 00:00:00 2001 From: Ferdia Soper Mac Cafraidh Date: Thu, 31 Oct 2024 09:16:05 +0000 Subject: [PATCH 1/3] [TESTS] Only test supported Python versions --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5bfa07..32bee37 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,17 @@ language: python -dist: focal +dist: jammy arch: - amd64 - arm64 python: - - "3.6" - - "3.7" - - "3.8" - "3.9" - "3.10" + - "3.11" + - "3.12" + - "3.13" before_install: # Login to docker hub From aa6b41e77a25bf64e40cc655e4e852b7c394df90 Mon Sep 17 00:00:00 2001 From: Ferdia Soper Mac Cafraidh Date: Thu, 31 Oct 2024 16:42:34 +0000 Subject: [PATCH 2/3] move tests to Github Actions --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..70f0f2f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Code Quality and Tests + +on: + push: + branches: ["master", "main"] + pull_request: + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Test Dependencies + run: pip install .[test] + + - name: Run Tests + run: pytest --color=yes --cov=learnosity_sdk From 5593ba0a92972c11448d63c1b006b65f3e62a6c5 Mon Sep 17 00:00:00 2001 From: Ferdia Soper Mac Cafraidh Date: Thu, 31 Oct 2024 16:43:04 +0000 Subject: [PATCH 3/3] removed travis CI --- .travis.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 32bee37..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: python - -dist: jammy - -arch: - - amd64 - - arm64 - -python: - - "3.9" - - "3.10" - - "3.11" - - "3.12" - - "3.13" - -before_install: - # Login to docker hub - - echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin - -install: "pip install .[test]" - -script: "pytest --cov=learnosity_sdk" - -notifications: - slack: - rooms: - secure: tCs/NWSyAvBa6GiyVp9Bkn/tyqEe6rWddw/XQvLHeZgPFI5433Nxycus1lxlp9ugASPdDDjKEiHXDRE64km1g3mGOyiRDald0n5z3aTYb4lebBxVjD9uKvJhjwknEmmEvaQV9UfP6hq8muX0Yx3qjhNNYZve8FR8UCFl3YC68mc= - on_success: change