From bf20a55f26e3de81d8cbb908e3a407f5ec4b2fe5 Mon Sep 17 00:00:00 2001 From: David Verdeguer Date: Thu, 22 Oct 2020 14:00:51 +0200 Subject: [PATCH] Combine python deps tests workflows --- .github/workflows/python-deps-windows.yml | 61 ----------------------- .github/workflows/python-deps.yml | 54 +++++++++++++++++++- 2 files changed, 53 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/python-deps-windows.yml diff --git a/.github/workflows/python-deps-windows.yml b/.github/workflows/python-deps-windows.yml deleted file mode 100644 index 5de085adb..000000000 --- a/.github/workflows/python-deps-windows.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Test Python Package Installation on Windows - - -on: - push: - branches: [main, v1] - pull_request: - -jobs: - - test-setup-python-scripts: - runs-on: windows-latest - strategy: - fail-fast: false - matrix: - include: - - test_dir: python-setup/tests/pipenv/requests-2 - python_version: 2 - - test_dir: python-setup/tests/pipenv/requests-3 - python_version: 3 - - - test_dir: python-setup/tests/poetry/requests-2 - python_version: 2 - - test_dir: python-setup/tests/poetry/requests-3 - python_version: 3 - - - test_dir: python-setup/tests/requirements/requests-2 - python_version: 2 - - test_dir: python-setup/tests/requirements/requests-3 - python_version: 3 - - - test_dir: python-setup/tests/setup_py/requests-2 - python_version: 2 - - test_dir: python-setup/tests/setup_py/requests-3 - python_version: 3 - - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: python - - - name: Test Auto Package Installation - run: | - $cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\install_tools.ps1" - powershell -File $cmd - - cd $Env:GITHUB_WORKSPACE\\${{ matrix.test_dir }} - py -3 $Env:GITHUB_WORKSPACE\\python-setup\\auto_install_packages.py C:\\hostedtoolcache\\windows\\CodeQL\\0.0.0-20200826\\x64\\codeql - - name: Setup for extractor - run: | - echo $Env:CODEQL_PYTHON - - py -3 $Env:GITHUB_WORKSPACE\\python-setup\\tests\\from_python_exe.py $Env:CODEQL_PYTHON - - name: Verify packages installed - run: | - $cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests_123.ps1" - powershell -File $cmd ${{ matrix.python_version }} \ No newline at end of file diff --git a/.github/workflows/python-deps.yml b/.github/workflows/python-deps.yml index 25c32bccd..a9b014449 100644 --- a/.github/workflows/python-deps.yml +++ b/.github/workflows/python-deps.yml @@ -70,4 +70,56 @@ jobs: fi - name: Verify packages installed run: | - ${{ matrix.test_script }} \ No newline at end of file + ${{ matrix.test_script }} + + test-setup-python-scripts-windows: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: + - test_dir: python-setup/tests/pipenv/requests-2 + python_version: 2 + - test_dir: python-setup/tests/pipenv/requests-3 + python_version: 3 + + - test_dir: python-setup/tests/poetry/requests-2 + python_version: 2 + - test_dir: python-setup/tests/poetry/requests-3 + python_version: 3 + + - test_dir: python-setup/tests/requirements/requests-2 + python_version: 2 + - test_dir: python-setup/tests/requirements/requests-3 + python_version: 3 + + - test_dir: python-setup/tests/setup_py/requests-2 + python_version: 2 + - test_dir: python-setup/tests/setup_py/requests-3 + python_version: 3 + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: python + + - name: Test Auto Package Installation + run: | + $cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\install_tools.ps1" + powershell -File $cmd + + cd $Env:GITHUB_WORKSPACE\\${{ matrix.test_dir }} + py -3 $Env:GITHUB_WORKSPACE\\python-setup\\auto_install_packages.py C:\\hostedtoolcache\\windows\\CodeQL\\0.0.0-20200826\\x64\\codeql + - name: Setup for extractor + run: | + echo $Env:CODEQL_PYTHON + + py -3 $Env:GITHUB_WORKSPACE\\python-setup\\tests\\from_python_exe.py $Env:CODEQL_PYTHON + - name: Verify packages installed + run: | + $cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests_123.ps1" + powershell -File $cmd ${{ matrix.python_version }} \ No newline at end of file