From 23451c8a563c66ee6b2e77793f281e14d2bee42f Mon Sep 17 00:00:00 2001 From: Walison Filipe Date: Mon, 26 Feb 2024 16:43:47 -0300 Subject: [PATCH] Create python-package workflow --- .github/workflows/python-package.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..7bbb9cb --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,35 @@ +name: Python package + +on: + push: + branches: + - main + pull_request: + branches: + - main + +env: + POETRY_VIRTUALENVS_CREATE: "false" + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: + - "3.10" + - "3.11" + - "3.12" + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip poetry + poetry install + - name: Test + run: python -m pytest