From cb6d3932cdeeab0cb70463260f2a0564a231331e Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 8 Jun 2022 09:29:16 -0300 Subject: [PATCH] Add CI --- .github/workflows/tests.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..516f683 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,33 @@ +name: CI + +on: + [push, pull_request] + +jobs: + build: + strategy: + matrix: + python-version: ["3.10"] + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Switch to Current Branch + run: git checkout ${{ env.BRANCH }} + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install poetry + poetry install + - name: Run unit tests + run: | + poetry run pytest