diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index ab39e33..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,24 +0,0 @@ -version: 2.1 - -orbs: - python: circleci/python@1.3.2 - -jobs: - test: - executor: python/default - steps: - - checkout - - run: - name: Install dependencies - command: | - pip install tox - - run: - name: Run tests - command: | - tox - -workflows: - version: 2 - test: - jobs: - - test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d4c8b3c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +on: + push: + branches: + - master + pull_request: + +name: Unit Testing +jobs: + chore: + name: Unit Tests + runs-on: ubuntu-latest + strategy: + matrix: + toxenv: [py37, py38, py39, flake8] + include: + - toxenv: py37 + python-version: "3.7" + - toxenv: py38 + python-version: "3.8" + - toxenv: py39 + python-version: "3.9" + - toxenv: flake8 + python-version: "3.X" + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install tox + + - name: Run Tox + run: | + tox -e ${{ matrix.toxenv }}