Skip to content

chore(deps-dev): bump pytest from 9.0.2 to 9.0.3 #924

chore(deps-dev): bump pytest from 9.0.2 to 9.0.3

chore(deps-dev): bump pytest from 9.0.2 to 9.0.3 #924

Workflow file for this run

name: build
on:
push:
branches:
- main
- release/**
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
dist:
name: Create Distribution
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0
- name: "Prepare Artifacts"
run: uv build
- name: Cache dist
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: dist
key: devservices-dist-${{ github.sha }}
binary:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, macos-15]
include:
- os: ubuntu-24.04
asset_name: devservices-linux
- os: macos-15
asset_name: devservices-darwin
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0
- name: Generate metadata
run: |
uv sync
uv pip install pyoxidizer==0.24.0
uv export --no-dev --no-hashes --no-emit-project -o requirements.txt
uv run python -m build --sdist --no-isolation
- name: Build binary
run: uv run pyoxidizer build --release
- name: Locate binary
id: locate_binary
shell: bash
run: |
BINARY_PATH=$(find build -name devservices -type f)
mkdir -p binaries
cp $BINARY_PATH binaries/${{ matrix.asset_name }}
- name: Cache binary
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: binaries/${{ matrix.asset_name }}
key: ${{ matrix.asset_name }}-${{ github.sha }}
upload-artifacts:
name: Upload build artifacts
runs-on: ubuntu-24.04
needs: [dist, binary]
if: github.event_name != 'pull_request'
steps:
- name: Restore dist cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: dist
key: devservices-dist-${{ github.sha }}
- name: Restore Linux binary cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: binaries/devservices-linux
key: devservices-linux-${{ github.sha }}
- name: Restore macOS binary cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: binaries/devservices-darwin
key: devservices-darwin-${{ github.sha }}
- name: Upload combined artifacts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: ${{ github.sha }}
path: |
dist/*
binaries/*