Skip to content

tests: make use of the stdlib unittest.mock for python 3.3+ #102

tests: make use of the stdlib unittest.mock for python 3.3+

tests: make use of the stdlib unittest.mock for python 3.3+ #102

Workflow file for this run

name: Make Release
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Set version
run: |
pip install --upgrade pip
scripts/lib/install-python-requirements
scripts/set-dev-version ${{ github.ref_name }} ${{ github.sha }}
- name: Make release
run: scripts/test-sdist
- name: version name
run: echo "version=$(python -c 'import setuptools; setuptools.setup()' --version)" >> "$GITHUB_OUTPUT"
id: version-name
- name: Publish release
uses: actions/upload-artifact@v4
with:
name: trash-cli-${{ steps.version-name.outputs.version }}.zip
path: dist/*.tar.gz
if-no-files-found: error