From 2dbd7a97e055720671f20f2ba0911743911f14a8 Mon Sep 17 00:00:00 2001 From: dwest77a Date: Mon, 28 Oct 2024 08:22:35 +0000 Subject: [PATCH] Updated CI --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..297e362 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Automatic Test + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.10, 3.11, 3.12] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip3 install poetry + poetry install + - name: Run tests + run: poetry run pytest