From 471ea06e0245fd471f057da751ee44e349824098 Mon Sep 17 00:00:00 2001 From: Darren Eberly Date: Thu, 11 Aug 2022 01:58:19 -0400 Subject: [PATCH] Add pytest actions workflow --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..35af94c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: Test + +on: + push: + branches: [development] + pull_request: + branches: [development] + workflow_dispatch: + +jobs: + + build: + name: Test + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + python-version: ['3.7', '3.8', '3.9', '3.10'] + architecture: ['x64'] + + steps: + - uses: actions/checkout@master + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + architecture: ${{ matrix.architecture }} + - name: dependencies + run: | + python -m pip install -U pip wheel setuptools + - name: wheel + run: | + python -m pip install -e .[tests] + - name: pytest + run: | + pytest --cov=pytiled_parser --cov-report=xml --cov-report=html + \ No newline at end of file