From 88396bb17c61ee9704b21f72324bea6d8c163ec1 Mon Sep 17 00:00:00 2001 From: wirthual Date: Thu, 22 Feb 2024 17:34:22 -0800 Subject: [PATCH 1/2] fix pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5f9557b..46df615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,11 +17,11 @@ authors = [ "Surya Bhupatiraju ", "Thomas Mesnard " ] -python-version = "3.10" license = "Apache-2.0" readme = "README.md" [tool.poetry.dependencies] +python = ">=3.10" absl-py = "^2.1.0" sentencepiece = "^0.1.99" flax = "^0.7.5" From 331c71c87e12cc92829ee1104fd1a5615a07aed0 Mon Sep 17 00:00:00 2001 From: wirthual Date: Thu, 22 Feb 2024 18:21:48 -0800 Subject: [PATCH 2/2] run pyton tests --- .github/workflows/runtests.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/runtests.yaml diff --git a/.github/workflows/runtests.yaml b/.github/workflows/runtests.yaml new file mode 100644 index 0000000..a2ab08c --- /dev/null +++ b/.github/workflows/runtests.yaml @@ -0,0 +1,26 @@ +name: Run Python 🐍 tests + +on: [push, pull_request] + +jobs: + test: + strategy: + matrix: + os: ["macos-latest", "windows-latest","ubuntu-20.04"] + python-version: ["3.10","3.11","3.12"] + fail-fast: false + + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install .[test] + - name: Test with pytest + run: | + pytest