From 7c4b677d4929a85eeb7a4b419142e7b29b5a74fb Mon Sep 17 00:00:00 2001 From: Victor Alhassan Date: Tue, 16 Apr 2024 18:08:49 -0400 Subject: [PATCH 1/2] Create test.yml test workflow --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..6176ef4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: test +on: [push, pull_request] +jobs: + run-tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11", "3.12"] + steps: + - name: clone repo + uses: actions/checkout@v4.1.2 + - name: set up python ${{ matrix.python-version }} + uses: actions/setup-python@v5.1.0 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + - name: install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: test with pytest + run: | + pytest --cov=. --cov-report html + + From d6d5b32751b3333e7eed7448ec3bbd40492b0462 Mon Sep 17 00:00:00 2001 From: Victor Alhassan Date: Tue, 16 Apr 2024 18:22:09 -0400 Subject: [PATCH 2/2] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6176ef4..9160706 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.11", "3.12"] + python-version: ["3.11"] steps: - name: clone repo uses: actions/checkout@v4.1.2