From 7c4b677d4929a85eeb7a4b419142e7b29b5a74fb Mon Sep 17 00:00:00 2001 From: Victor Alhassan Date: Tue, 16 Apr 2024 18:08:49 -0400 Subject: [PATCH] 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 + +