From 0db156a8010625fa2420e0fb3b89644603719548 Mon Sep 17 00:00:00 2001 From: Gary Miguel Date: Sun, 2 Jun 2024 16:19:32 -0700 Subject: [PATCH] add github workflow that runs pytest --- .github/workflows/checks.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..a89de7a --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,24 @@ +name: Checks + +on: [push] + +jobs: + pytest: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install requirements + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Install package + run: pip install . + - name: pytest + run: pytest