From 36364d6e3d8148545e6d41ec63f3bcfaabe78251 Mon Sep 17 00:00:00 2001 From: 283375 Date: Thu, 9 Nov 2023 17:31:55 +0800 Subject: [PATCH] ci: pytest actions --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..71fcba7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Run tests +on: + push: + branches: + - 'master' + pull_request: + types: [opened, reopened] + workflow_dispatch: +jobs: + pytest: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11'] + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - run: 'pip install -r requirements.dev.txt .' + - run: 'pytest -v'