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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5bfa07..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: python - -dist: focal - -arch: - - amd64 - - arm64 - -python: - - "3.6" - - "3.7" - - "3.8" - - "3.9" - - "3.10" - -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