diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2bc76e9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: ci +on: [push] +jobs: + build: + 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: + - 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 diff --git a/.gitignore b/.gitignore index db1f598..d2aa098 100644 --- a/.gitignore +++ b/.gitignore @@ -98,3 +98,7 @@ ENV/ # mypy .mypy_cache/ +# Emacs +*~ +\#.*\# +*.\# 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