chore: update winlibs package #76
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
name: CI | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [develop] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Check (Lint) Commit Messages and Files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- uses: pre-commit/[email protected] | |
# Make sure commit messages follow the conventional commits convention: | |
# https://www.conventionalcommits.org | |
- uses: wagoid/commitlint-github-action@v5 | |
test: | |
name: Run Tests | |
runs-on: windows-latest | |
needs: | |
- lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: install tools, build and test | |
env: | |
# Workaround to force usage of scoop apps installed in USERPROFILE. | |
USER_PATH_FIRST: 1 | |
run: | | |
.\build.ps1 | |
shell: powershell | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action/windows@v2 | |
if: always() | |
with: | |
files: | | |
out/test-report.xml | |
release: | |
needs: | |
- test | |
- lint | |
runs-on: ubuntu-latest | |
environment: release | |
concurrency: release | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref || github.ref_name }} | |
# Do a dry run of release | |
- name: Test release | |
uses: python-semantic-release/[email protected] | |
if: github.ref_name != 'develop' | |
with: | |
root_options: --noop | |
# On main branch: actual release + upload to PyPI & GitHub | |
- name: Release | |
uses: python-semantic-release/[email protected] | |
id: release | |
if: github.ref_name == 'develop' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
if: steps.release.outputs.released == 'true' | |
- name: Publish package distributions to GitHub Releases | |
uses: python-semantic-release/upload-to-gh-release@main | |
if: steps.release.outputs.released == 'true' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |