diff --git a/.github/workflows/Parameters.yml b/.github/workflows/Parameters.yml index 57ffb43..565fa1e 100644 --- a/.github/workflows/Parameters.yml +++ b/.github/workflows/Parameters.yml @@ -86,11 +86,12 @@ jobs: print('WARNING: support for Python 3.6 ended in 2021.12.23') data = { 'python': { - '3.6': { 'icon': '⚫', 'until': '2021.12.23' }, - '3.7': { 'icon': '🔴', 'until': '2023.06.27' }, - '3.8': { 'icon': '🟠', 'until': '2024.10' }, - '3.9': { 'icon': '🟡', 'until': '2025.10' }, - '3.10': { 'icon': '🟢', 'until': '2026.10' }, + '3.6': { 'icon': '⚫', 'until': '2021.12.23' }, + '3.7': { 'icon': '🔴', 'until': '2023.06.27' }, + '3.8': { 'icon': '🟠', 'until': '2024.10' }, + '3.9': { 'icon': '🟡', 'until': '2025.10' }, + '3.10': { 'icon': '🟢', 'until': '2026.10' }, + '3.11': { 'icon': '🟣', 'until': '2027.10' }, }, 'sys': { 'ubuntu': { 'icon': '🐧', 'runs-on': 'ubuntu-latest', 'shell': 'bash' }, @@ -106,7 +107,7 @@ jobs: 'runs-on': data['sys'][system]['runs-on'], 'shell': data['sys'][system]['shell'], 'pyicon': data['python'][version]['icon'], - 'python': version + 'python': '3.11.0-alpha.3' if version == '3.11' else version } for system in systems for version in (versions if system != 'msys2' else ['3.9']) diff --git a/.github/workflows/UnitTesting.yml b/.github/workflows/UnitTesting.yml index 5184b7a..de622f5 100644 --- a/.github/workflows/UnitTesting.yml +++ b/.github/workflows/UnitTesting.yml @@ -64,26 +64,33 @@ jobs: - name: ⏬ Checkout repository uses: actions/checkout@v2 - - if: matrix.system == 'msys2' - name: '🟦 Setup MSYS2' + - name: '🟦 Setup MSYS2' + if: matrix.system == 'msys2' uses: msys2/setup-msys2@v2 with: msystem: MINGW64 update: true pacboy: python-pip:p - - if: matrix.system != 'msys2' - name: 🐍 Setup Python ${{ matrix.python }} + - name: 🐍 Setup Python ${{ matrix.python }} + if: matrix.system != 'msys2' uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} - name: 🔧 Install dependencies run: | - python -m pip install -U pip + python -m pip install -U pip wheel python -m pip install ${{ inputs.requirements }} - name: ☑ Run unit tests + if: matrix.system == 'windows' + run: | + $PYTEST_ARGS = if ("${{ inputs.artifact }}".length -gt 0) { "--junitxml=TestReport.xml" } else { "" } + python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes + + - name: ☑ Run unit tests + if: matrix.system != 'windows' run: | [ 'x${{ inputs.artifact }}' != 'x' ] && PYTEST_ARGS='--junitxml=TestReport.xml' || unset PYTEST_ARGS python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes