From a56a78d94b9d5b3fdbf74905e2dac07de133429d Mon Sep 17 00:00:00 2001 From: Finbarrs Oketunji Date: Wed, 25 Sep 2024 19:05:10 +0100 Subject: [PATCH 1/2] gh Signed-off-by: Finbarrs Oketunji --- .github/workflows/test.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..896c659 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,30 @@ +name: Tests + +on: + push: + branches: [develop] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + 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@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: python3 -m test From 732cb81f3f1b01a8f1d405b768aa71864d68e0ac Mon Sep 17 00:00:00 2001 From: Finbarrs Oketunji Date: Wed, 25 Sep 2024 19:27:35 +0100 Subject: [PATCH 2/2] gh Signed-off-by: Finbarrs Oketunji --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 896c659..0a50545 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.10, 3.11, 3.12] + python-version: [3.11, 3.12] steps: - uses: actions/checkout@v3