From d6b492ab30037842ac8225ed4e90adf2e86b6481 Mon Sep 17 00:00:00 2001 From: Genaro Madrid Date: Mon, 24 Aug 2026 20:57:58 -0600 Subject: [PATCH 1/2] add CI tests --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ .python-version | 1 + .vscode/settings.json | 4 ++++ 3 files changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 .python-version create mode 100644 .vscode/settings.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8f4853f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Tests + +on: + push: + branches: [master, main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v5 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Poetry + run: | + python -m pip install --upgrade pip + python -m pip install "poetry==2.3.4" + + - name: Install dependencies + run: poetry install --no-interaction --no-ansi + + - name: Run tests + run: poetry run pytest diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d9e0982 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", + "python.terminal.activateEnvironment": true +} From 9af93dc01f6a5d15ea02cc79c90ef669a7881900 Mon Sep 17 00:00:00 2001 From: Genaro Madrid Date: Mon, 24 Aug 2026 21:00:31 -0600 Subject: [PATCH 2/2] remove travis config --- .travis.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5f6fdaf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: python -dist: focal - -# This stops the entire job from running if it's a PR -if: type != pull_request - -python: - - "3.10" - - "3.11" - - "3.12" - -install: - - python -m pip install --upgrade pip - - python -m pip install "poetry==2.3.4" - - poetry install --no-interaction --no-ansi - -script: - - poetry run pytest