Check compatibility #5723
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: Check compatibility | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**/README.md' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/README.md' | |
schedule: | |
- cron: '5 */8 * * *' | |
workflow_dispatch: {} | |
jobs: | |
image-api: | |
name: Image API | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Python dependencies | |
run: python -m pip install -r requirements.txt | |
- name: Set up API server | |
uses: opvious/api-server-action@v0.2.0 | |
with: | |
license-key: ${{ secrets.OPVIOUS_LICENSE_KEY }} | |
- name: Check compatibility | |
run: ./scripts/check-compatibility.sh | |
- name: Show API logs | |
if: failure() | |
run: opvious api logs |