mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
v0.4.1
This commit is contained in:
33
.github/workflows/UnitTesting.yml
vendored
33
.github/workflows/UnitTesting.yml
vendored
@@ -34,6 +34,20 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: '-r tests/requirements.txt'
|
default: '-r tests/requirements.txt'
|
||||||
type: string
|
type: string
|
||||||
|
pacboy:
|
||||||
|
description: 'MSYS2 dependencies to be installed through pacboy (pacman).'
|
||||||
|
required: false
|
||||||
|
default: >-
|
||||||
|
python-pip:p
|
||||||
|
python-wheel:p
|
||||||
|
python-coverage:p
|
||||||
|
python-lxml:p
|
||||||
|
type: string
|
||||||
|
mingw_requirements:
|
||||||
|
description: 'Override Python dependencies to be installed through pip on MSYS2 (MINGW64) only.'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
unittest_directory:
|
unittest_directory:
|
||||||
description: 'Path to the directory containing unit tests.'
|
description: 'Path to the directory containing unit tests.'
|
||||||
required: false
|
required: false
|
||||||
@@ -70,11 +84,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
msystem: MINGW64
|
msystem: MINGW64
|
||||||
update: true
|
update: true
|
||||||
pacboy: >-
|
pacboy: ${{ inputs.pacboy }}
|
||||||
python-pip:p
|
|
||||||
python-wheel:p
|
|
||||||
python-coverage:p
|
|
||||||
python-lxml:p
|
|
||||||
|
|
||||||
- name: 🐍 Setup Python ${{ matrix.python }}
|
- name: 🐍 Setup Python ${{ matrix.python }}
|
||||||
if: matrix.system != 'msys2'
|
if: matrix.system != 'msys2'
|
||||||
@@ -85,13 +95,20 @@ jobs:
|
|||||||
- name: ⚙️ Update pip
|
- name: ⚙️ Update pip
|
||||||
run: python -m pip install -U pip
|
run: python -m pip install -U pip
|
||||||
|
|
||||||
- name: ⚙️ Install wheel
|
- name: 🔧 Install wheel and pip dependencies
|
||||||
if: matrix.system != 'msys2'
|
if: matrix.system != 'msys2'
|
||||||
run: |
|
run: |
|
||||||
python -m pip install -U wheel
|
python -m pip install -U wheel
|
||||||
|
python -m pip install ${{ inputs.requirements }}
|
||||||
|
|
||||||
- name: 🔧 Install dependencies
|
- name: 🔧 Install pip dependencies
|
||||||
run: python -m pip install ${{ inputs.requirements }}
|
if: matrix.system == 'msys2'
|
||||||
|
run: |
|
||||||
|
if [ 'x${{ inputs.mingw_requirements }}' != 'x' ]; then
|
||||||
|
python -m pip install ${{ inputs.mingw_requirements }}
|
||||||
|
else
|
||||||
|
python -m pip install ${{ inputs.requirements }}
|
||||||
|
fi
|
||||||
|
|
||||||
- name: ☑ Run unit tests
|
- name: ☑ Run unit tests
|
||||||
if: matrix.system == 'windows'
|
if: matrix.system == 'windows'
|
||||||
|
|||||||
@@ -46,6 +46,13 @@ jobs:
|
|||||||
jobs: ${{ needs.Params.outputs.python_jobs }}
|
jobs: ${{ needs.Params.outputs.python_jobs }}
|
||||||
# Optional
|
# Optional
|
||||||
requirements: '-r tests/requirements.txt'
|
requirements: '-r tests/requirements.txt'
|
||||||
|
pacboy: >-
|
||||||
|
python-pip:p
|
||||||
|
python-wheel:p
|
||||||
|
python-coverage:p
|
||||||
|
python-lxml:p
|
||||||
|
mingw_requirements: '-r tests/requirements.mingw.txt'
|
||||||
|
unittest_directory: 'tests/unit'
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}
|
||||||
|
|
||||||
Coverage:
|
Coverage:
|
||||||
|
|||||||
Reference in New Issue
Block a user