From d6575967b3688e24b28e1ee134e6180d0b4d2e41 Mon Sep 17 00:00:00 2001 From: Louie Lu Date: Wed, 15 May 2024 10:41:52 -0400 Subject: [PATCH 1/4] Add Github Actions CI --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..5a86312 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: ci +on: [push] +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} - ${{ github.event_name }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup + run: + | + pip install pipenv + pipenv install --dev + - name: Run tests + run: pipenv run coverage run --source=twstock -m unittest + - name: Create reports + run: + | + pipenv run coveralls + pipenv run codecov From d819cb0d92b50e6a1cdfd54e225479f1303ba5d5 Mon Sep 17 00:00:00 2001 From: Louie Lu Date: Wed, 15 May 2024 10:45:01 -0400 Subject: [PATCH 2/4] Add matrix of Python version --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a86312..2bc76e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,8 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] + python-version: + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] runs-on: ${{ matrix.os }} name: ${{ matrix.os }} - ${{ github.event_name }} steps: From 90515d8ffd4088a38956897a82b7fa85944017cc Mon Sep 17 00:00:00 2001 From: Louie Lu Date: Wed, 15 May 2024 10:45:36 -0400 Subject: [PATCH 3/4] Update gitignore --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index db1f598..d2aa098 100644 --- a/.gitignore +++ b/.gitignore @@ -98,3 +98,7 @@ ENV/ # mypy .mypy_cache/ +# Emacs +*~ +\#.*\# +*.\# From 5676028caab9bbe6b5f02e0f3d45f375cdf43039 Mon Sep 17 00:00:00 2001 From: Louie Lu Date: Wed, 15 May 2024 10:48:15 -0400 Subject: [PATCH 4/4] Remove Travis-CI --- .travis.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 13f6da9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: python - -# needed to use trusty -sudo: required - -dist: trusty - -branches: - only: - - master - -python: - - "3.5" - - "3.6" - - "nightly" - -install: - - pip install pipenv - - pipenv install --dev - -script: - - pipenv run coverage run --source=twstock -m unittest - -after_success: - - pipenv run coveralls - - pipenv run codecov