From b066610a5d8fd84398ac8c3c69858fa3ec617b49 Mon Sep 17 00:00:00 2001 From: Daniel Miller Date: Thu, 17 Oct 2024 13:04:08 -0400 Subject: [PATCH] Add github workflow to run tests and flake8 --- .github/workflows/tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..5d8a141 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +name: pytest-unmagic tests +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python: ['3.9', '3.10', '3.11', '3.12', '3.13'] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - name: Setup + run: | + python --version + pip install --upgrade pip flake8 + pip install -e . + - name: Run tests + run: pytest + - name: Check style + run: flake8 src/unmagic/ tests/