From 1e0ff2d939ceabe3794ca722a7b50b0dbbe349b3 Mon Sep 17 00:00:00 2001 From: Mews <60406199+Mews@users.noreply.github.com> Date: Wed, 12 Jun 2024 21:03:50 +0100 Subject: [PATCH] Use workflow from https://github.com/Mews/.github/blob/main/workflows/run-python-tests.yaml --- .github/workflows/run_tests.yml | 36 +++++---------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index c50eabf..eee9062 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -9,35 +9,9 @@ on: pull_request: branches: [ "main" ] -permissions: - contents: write - jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Python 3.10 - uses: actions/setup-python@v5 - with: - python-version: "3.10" - cache: 'pip' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install pytest - - - name: Run tests - run: | - coverage run -m pytest -v tests - - - name: Coverage comment - id: coverage_comment - uses: py-cov-action/python-coverage-comment-action@v3 - with: - GITHUB_TOKEN: ${{ github.token }} + call-run-python-tests: + uses: Mews/.github/workflows/run-python-tests.yaml@main + with: + python_versions: '["3.10", "3.11", "3.12"]' + os_list: '["ubuntu-latest", "windows-latest"]' \ No newline at end of file