1 [davidbrownell] on 2/merge #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------- | |
# | | |
# | standard.yaml | |
# | | |
# | David Brownell <[email protected]> | |
# | 2024-01-02 18:15:54 | |
# | | |
# ---------------------------------------------------------------------- | |
# | | |
# | Copyright David Brownell 2024 | |
# | Distributed under the Boost Software License, Version 1.0. See | |
# | accompanying file LICENSE_1_0.txt or copy at | |
# | http://www.boost.org/LICENSE_1_0.txt. | |
# | | |
# ---------------------------------------------------------------------- | |
name: "Standard" | |
run-name: ${{ github.run_number }} [${{ github.actor }}] on ${{ github.ref_name }} | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' # Once a day at 12am UTC | |
workflow_dispatch: | |
jobs: | |
standard: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
python_version: | |
- 3.12 | |
- 3.11 | |
- 3.10 | |
- 3.9 | |
- 3.8 | |
name: "Standard (py${{ matrix.python_version }})" | |
runs-on: ${{ matrix.os }} | |
env: | |
COLUMNS: "200" | |
SIMULATE_TERMINAL_CAPABILITIES_SUPPORTS_COLORS: "1" | |
PYTHONIOENCODING: "UTF-8" | |
steps: | |
# Ensure that windows machines support long paths | |
- name: git Long File Path Support on Windows | |
if: ${{ startsWith(matrix.os, 'windows') }} | |
run: |- | |
git config --system core.longpaths true | |
- name: "Checkout Source" | |
uses: actions/checkout@v4 | |
- name: Initialize | |
id: Initialize | |
uses: davidbrownell/PythonBootstrapper/actions/initialize@main | |
with: | |
operating_system: ${{ matrix.os }} | |
- name: Standard | |
uses: ./.github/actions/standard | |
with: | |
operating_system: ${{ matrix.os }} | |
python_version: ${{ matrix.python_version }} | |
script_prefix: ${{ steps.initialize.outputs.script_prefix }} | |
script_extension: ${{ steps.initialize.outputs.script_extension }} | |
shell_name: ${{ steps.initialize.outputs.shell_name }} | |
source_command: ${{ steps.initialize.outputs.source_command }} | |
sudo_command: ${{ steps.initialize.outputs.sudo_command }} |