diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index f0e74b5..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,113 +0,0 @@ -version: 2 - -jobs: - test-3.6: - docker: - - image: circleci/python:3.6.9 - environment: - CIRCLE_ARTIFACTS: /tmp/circleci-artifacts - CIRCLE_TEST_REPORTS: /tmp/circleci-test-results - LOG_DIR: ${CIRCLE_ARTIFACTS}/testresults/ - steps: - - checkout - - run: - name: Get setuptools - shell: /bin/bash - command: sudo pip install --upgrade pip setuptools codecov - - run: - name: Install dependencies - shell: /bin/bash - command: sudo make deps - - run: - name: Static Type Check - Mypy - shell: /bin/bash - command: sudo make static_type_check - - run: - name: Code Check - Pylint - shell: /bin/bash - command: sudo make pylint - - run: - name: Run test - shell: /bin/bash - command: | - sudo make -e test - codecov - - store_artifacts: - path: /tmp/circleci-artifacts - - test-3.7: - docker: - - image: circleci/python:3.7.8 - environment: - CIRCLE_ARTIFACTS: /tmp/circleci-artifacts - CIRCLE_TEST_REPORTS: /tmp/circleci-test-results - LOG_DIR: ${CIRCLE_ARTIFACTS}/testresults/ - steps: - - checkout - - run: - name: Get setuptools - shell: /bin/bash - command: sudo pip install --upgrade pip setuptools codecov - - run: - name: Install dependencies - shell: /bin/bash - command: sudo make deps - - run: - name: Static Type Check - Mypy - shell: /bin/bash - command: sudo make static_type_check - - run: - name: Code Check - Pylint - shell: /bin/bash - command: sudo make pylint - - run: - name: Run test - shell: /bin/bash - command: | - sudo make -e test - codecov - - store_artifacts: - path: /tmp/circleci-artifacts - - test-3.8: - docker: - - image: circleci/python:3.8.3 - environment: - CIRCLE_ARTIFACTS: /tmp/circleci-artifacts - CIRCLE_TEST_REPORTS: /tmp/circleci-test-results - LOG_DIR: ${CIRCLE_ARTIFACTS}/testresults/ - steps: - - checkout - - run: - name: Get setuptools - shell: /bin/bash - command: sudo pip install --upgrade pip setuptools codecov - - run: - name: Install dependencies - shell: /bin/bash - command: sudo make deps - - run: - name: Static Type Check - Mypy - shell: /bin/bash - command: sudo make static_type_check - - run: - name: Code Check - Pylint - shell: /bin/bash - command: sudo make pylint - - run: - name: Run test - shell: /bin/bash - command: | - sudo make -e test - codecov - - store_artifacts: - path: /tmp/circleci-artifacts - - -workflows: - version: 2 - tests: - jobs: - - test-3.6 - - test-3.7 - - test-3.8 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4fe3db2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Unittest + +on: [push] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [ '3.6', '3.7', '3.8'] + name: Test - Python ${{ matrix.python-version }} on ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Get setuptools + run: pip install --upgrade pip setuptools codecov + - name: Install dependencies + run: make deps + - name: Code Check - Pylint + run: make pylint + - name: Static Type Check - Mypy + run: make static_type_check + - name: Test with pytest + run: | + make -e test + codecov + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 3c4886a..7af96e2 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,12 @@