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

API Stability #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
27 changes: 27 additions & 0 deletions .github/workflows/modules-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,30 @@ jobs:
uses: avocado-framework/avocado-ci-tools@main
with:
avocado-static-checks: true


api-stability-tests:
runs-on: ubuntu-latest
steps:
- name: Check out Autils code from PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Fetch main branch
run: git fetch origin main

- name: Check for changes in tests directory
id: test_changes
run: |
git diff --quiet origin/main -- tests/
continue-on-error: true

- name: Install Avocado to run tests
if: steps.test_changes.outcome == 'failure'
run: pip3 install 'avocado-framework<104.0'

- name: Run API stability tests
if: steps.test_changes.outcome == 'failure'
run: ./tests/test_module.py metadata/autils/archive/ar.yml

Loading