Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: test record ansible results to an ara server #339

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.repository }},pr:${{ github.event.number }},ref:${{ github.ref }},sha:${{ github.sha }}
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