Skip to content

Commit

Permalink
github: test record ansible results to an ara server
Browse files Browse the repository at this point in the history
If this works, it would provide a better UX than trying to dig through
the ansible console output in the github action.
  • Loading branch information
dmsimard committed Nov 18, 2021
1 parent 430bd7b commit 743f544
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/antsibull-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ on:
branches: [main]

jobs:
build:
build-release:
runs-on: ubuntu-latest

steps:
- name: Check out antsibull
uses: actions/checkout@v2
Expand All @@ -21,11 +20,22 @@ jobs:

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install poetry ansible-core
python3 -m pip install --user --upgrade pip
python3 -m pip install --user poetry ansible-core ara
- name: Test building a release with the defaults
shell: bash
env:
ARA_API_CLIENT: http
ARA_API_SERVER: https://demo.recordsansible.org
ARA_API_USERNAME: ${{ secrets.ARA_API_USERNAME }}
ARA_API_PASSWORD: "${{ secrets.ARA_API_PASSWORD }}"
ARA_CALLBACK_THREADS: 4
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
ARA_DEFAULT_LABELS: >-
repository:${{ github.event.number }},pr:${{ github.repository }},ref:${{ github.ref }},sha:${{ github.sha }},workflow:${{ github.event.number }}
run: |
export ANSIBLE_CALLBACK_PLUGINS=$(python3 -m ara.setup.callback_plugins)
ansible-playbook -vv playbooks/build-single-release.yaml
- name: Combine and upload coverage stats
Expand Down

0 comments on commit 743f544

Please sign in to comment.