diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7b95433 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI pipeline + +on: + push: + branches: + - "master" + pull_request: + branches: + - "master" + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.7] + steps: + - name: checkout repo + uses: actions/checkout@v2 + - name: set up python ${{ matrix.python-version }} + uses: action/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: run tests + run: pytest tests/test* \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..55b033e --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pytest \ No newline at end of file