ci: clean up github mq configs and add dd mq configs (#10924) #27626
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: encoders-profile | |
on: | |
push: | |
branches: | |
- main | |
- 'mq-working-branch**' | |
pull_request: | |
paths: | |
- 'ddtrace/internal/_encoding.pyx' | |
- 'scripts/profiles/encoders/**' | |
- '.github/workflows/encoders-profile.yml' | |
jobs: | |
encoders-profile: | |
runs-on: ubuntu-latest | |
env: | |
PREFIX: ${{ github.workspace }}/prefix | |
defaults: | |
run: | |
working-directory: ddtrace | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: ddtrace | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Setup | |
run: | | |
bash scripts/profiles/encoders/setup.sh ${PREFIX} | |
- name: Run | |
run: | | |
bash scripts/profiles/encoders/run.sh ${PREFIX} | |
for a in `ls ${PREFIX}/artifacts` | |
do | |
sed -i 's|${{ github.workspace }}/ddtrace/||g' ${PREFIX}/artifacts/$a | |
done | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: encoders-profile | |
path: ${{ github.workspace }}/prefix/artifacts | |