diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 0000000..422636f --- /dev/null +++ b/.github/workflows/dev.yml @@ -0,0 +1,36 @@ +name: pytest + +on: + push: + branches: + - master + pull_request: + branches: + - master + +env: + POETRY_VERSION: 1.1.7 + POETRY_URL: https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py + +jobs: + test: + name: Run tests with pytest + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8, 3.9] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Poetry + run: | + curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - + echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Install Dependencies + run: poetry install --no-interaction + - name: Run Tests + run: make test