From 1ac11f6c6f83a40470a993130ca395ba98d39b48 Mon Sep 17 00:00:00 2001 From: AssociatedPrimeIdeal Date: Wed, 29 Apr 2026 20:46:22 +0800 Subject: [PATCH] ci: add pytest workflow --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100755 index 0000000..cb3b5ee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: + - "3.11" + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Upgrade pip + run: python -m pip install --upgrade pip + + - name: Install package and test dependencies + run: python -m pip install -e ".[test]" + + - name: Run pytest + env: + PYVISTA_OFF_SCREEN: "true" + run: pytest -q