Skip to content

Resolve minor issues in the recent 0.26.0 version #154

Resolve minor issues in the recent 0.26.0 version

Resolve minor issues in the recent 0.26.0 version #154

Workflow file for this run

name: MacOS (build-&-test)
on:
push:
branches:
- devel
pull_request:
branches:
- devel
jobs:
# Tests classic build using Tox for selected Python versions
# Version 3.9 is omitted due to some dependencies not being compatible with ARM CPUs.
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Setup Python, macOS and Python environment
uses: ./.github/workflows/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Execute tests for Python ${{ matrix.python-version }} using Tox
run: tox -e py
- name: Generate docs for Python ${{ matrix.python-version }} using Tox
run: |
tox -e docs
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: coverage-macos-${{ matrix.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
# Tests editable build using Tox for selected Python versions
# We limit the test to version 3.12 in order to have less clutter in Actions
build-editable:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Setup Python, macOS and Python environment
uses: ./.github/workflows/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Execute tests for Python ${{ matrix.python-version }} using Tox
run: tox -e editable
# Tests that perun is buildable from distribution packages (this is precursor for pypi install).
# We limit the test to version 3.12 in order to have less clutter in Actions
build-from-dist:
runs-on: macos-latest
strategy:
matrix:
python-version: [ "3.12" ]
steps:
- uses: actions/checkout@v3
- name: Setup Python, macOS and Python environment
uses: ./.github/workflows/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Create tarball or wheel
run: |
pip3 install -q build
make release
- name: Install from dist (tar.gz)
run: |
pip3 install dist/*.tar.gz
- name: Try running perun and getting help
run: |
perun --help