From f4b92a848fc0215f01398d0b4bad539761d59f95 Mon Sep 17 00:00:00 2001 From: Hunter Fernandes Date: Sun, 3 Nov 2024 00:40:35 -0700 Subject: [PATCH 1/3] Add Github test workflows --- .github/workflows/python-package.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 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..0d01ab3 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,38 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python package + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + poetry install + - name: Lint + run: | + make test-format + - name: Test + run: | + make test-python + - name: Check Types + run: | + make test-pyre From dbfe2101dd233391183486b89015d793cba226eb Mon Sep 17 00:00:00 2001 From: Hunter Fernandes Date: Sun, 3 Nov 2024 00:49:47 -0700 Subject: [PATCH 2/3] Update python-package.yml --- .github/workflows/python-package.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 0d01ab3..0a80d7f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -21,9 +21,11 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install Poetry + uses: snok/install-poetry@v1 - name: Install dependencies run: | poetry install From b4af099c08f400e799fe833935fd43d283bdee74 Mon Sep 17 00:00:00 2001 From: Hunter Fernandes Date: Sun, 3 Nov 2024 00:53:01 -0700 Subject: [PATCH 3/3] Update python-package.yml --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 0a80d7f..cdb578e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Python package +name: Python Tests on: push: