Skip to content

Bump types-requests from 2.26.1 to 2.32.0.20240907 in /tools/deps #5634

Bump types-requests from 2.26.1 to 2.32.0.20240907 in /tools/deps

Bump types-requests from 2.26.1 to 2.32.0.20240907 in /tools/deps #5634

name: Integration tests
on:
pull_request:
paths:
- ".github/workflows/integration_tests.yml"
- "nxdrive/**/*.py"
- "tests/integration/**/*.py"
- "tools/deps/*.txt"
push:
branches: [master]
paths:
- "nxdrive/**/*.py"
- "tests/integration/**/*.py"
env:
FREEZE_ONLY: 1
jobs:
integration-tests-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
lts_environment: [ ["https://drive-2021.beta.nuxeocloud.com/nuxeo", "2021", "NXDRIVE_TEST_USERNAME", "NXDRIVE_TEST_PASSWORD"], ["https://drive-2023.beta.nuxeocloud.com/nuxeo", "2023", "NXDRIVE_2023_TEST_USERNAME", "NXDRIVE_2023_TEST_PASSWORD"] ]
env:
NXDRIVE_TEST_NUXEO_URL: ${{ matrix.lts_environment[0] }}
NXDRIVE_TEST_USERNAME: ${{ secrets[matrix.lts_environment[2]] }}
NXDRIVE_TEST_PASSWORD: ${{ secrets[matrix.lts_environment[3]] }}
name: integration-tests-windows(LTS ${{ matrix.lts_environment[1] }})
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9 # XXX_PYTHON
architecture: "x86"
- uses: actions/cache@v4
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ hashFiles('tools/deps/requirements.txt', 'tools/deps/requirements-test.txt', 'tools/deps/requirements-dev.txt', 'tools/deps/requirements-tox.txt') }}
restore-keys: ${{ runner.os }}-pip-${{ hashFiles('tools/deps/requirements.txt', 'tools/deps/requirements-test.txt', 'tools/deps/requirements-dev.txt', 'tools/deps/requirements-tox.txt') }}
# Cannot be used for now: OSError: [WinError 193] %1 is not a valid Win32 application
# - uses: actions/cache@v4
# with:
# path: .tox
# key: ${{ runner.os }}-tox-${{ hashFiles('tools/deps/requirements-test.txt', 'tools/deps/requirements-tox.txt') }}
# restore-keys: ${{ runner.os }}-tox-${{ hashFiles('tools/deps/requirements-test.txt', 'tools/deps/requirements-tox.txt') }}
- name: Freeze the application
run: |
powershell Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine
powershell ".\\tools\\windows\\deploy_ci_agent.ps1" -install_release
powershell ".\\tools\\windows\\deploy_ci_agent.ps1" -build
- name: Install tox
run: python -m pip install -r tools/deps/requirements-tox.txt
- name: Integration tests
run: tox -e integration
- name: Upload coverage to Codecov
if: ${{ success() }} || ${{ failure() }}
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./coverage.xml
flags: integration
env_vars: OS,PYTHON