From 282ee6c771b55f720e8b5923dbc8430919b4492c Mon Sep 17 00:00:00 2001 From: jwfraustro <36318163+jwfraustro@users.noreply.github.com> Date: Thu, 30 Nov 2023 18:40:17 -0500 Subject: [PATCH] gitignore / add workflow --- .github/workflows/build_and_run.yml | 28 ++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/build_and_run.yml diff --git a/.github/workflows/build_and_run.yml b/.github/workflows/build_and_run.yml new file mode 100644 index 0000000..8beecae --- /dev/null +++ b/.github/workflows/build_and_run.yml @@ -0,0 +1,28 @@ +name: Build and Test + +on: [push, pull_request] + +jobs: + build-and-test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11"] + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install -r requirements.txt + + - name: Run pytest + run: | + pip install .['test'] + pytest --cov=tests/ diff --git a/.gitignore b/.gitignore index 7d44098..b43e30f 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,7 @@ nosetests.xml coverage.xml *,cover .hypothesis/ +.pytest_cache/ # Translations *.mo