From 3be3e4ab90245214492445ae19b4cf0976f50c14 Mon Sep 17 00:00:00 2001 From: Graham Tibbitts Date: Sun, 5 Nov 2023 17:22:19 -0700 Subject: [PATCH] Create run-tests.yml --- .github/workflows/run-tests.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..c15160b --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,36 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + ci: + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.10"] + poetry-version: ["1.2.0"] + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Run image + uses: abatilo/actions-poetry@v2 + with: + poetry-version: ${{ matrix.poetry-version }} + - name: Install dependencies + run: poetry install + - name: Run tests + run: poetry run pytest