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