From f186030d3fa5df463dc2e56a3ceaf59f8a092fcf Mon Sep 17 00:00:00 2001 From: moi15moi <80980684+moi15moi@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:51:09 -0500 Subject: [PATCH] Create run_test.yml --- .github/workflows/run_test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/run_test.yml diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml new file mode 100644 index 0000000..a063fae --- /dev/null +++ b/.github/workflows/run_test.yml @@ -0,0 +1,33 @@ +name: Run Tests + +on: [push, pull_request] + +jobs: + run-tests: + name: "Test (${{matrix.os}}, Python ${{ matrix.python-version }})" + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Python requirements + run: pip install --upgrade --upgrade-strategy eager . + + - name: Install pytest + run: | + pip install pytest + + - name: Run tests + run: | + pytest