From 54578f9956563e8d508bcae92995017fd7b3cee4 Mon Sep 17 00:00:00 2001 From: Alexander Bonkowski <57258530+ab5424@users.noreply.github.com> Date: Wed, 8 Nov 2023 17:34:21 +0100 Subject: [PATCH] Add files via upload --- .github/workflows/test.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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..2ae3c8d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,41 @@ +name: Tests + +on: + push: + branches: [main] + paths-ignore: ["**/*.md", docs/**] + pull_request: + branches: [main] + paths-ignore: ["**/*.md", docs/**] + +permissions: + contents: read + +jobs: + test: + # prevent this action from running on forks + if: github.repository == 'ab5424/agility' + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] + python-version: ["3.9", "3.11"] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: pip + cache-dependency-path: setup.py + - name: Install dependencies + run: | + python -m pip install --upgrade pip wheel + python -m pip install numpy packaging + python -m pip install -e '.[dev,optional]' + - name: pytest + run: | + pytest tests