Skip to content

Commit

Permalink
refactor: switch to API server action (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtth authored Jun 18, 2024
1 parent b7b49a2 commit ded6b42
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/check-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,18 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- name: Install Node dependencies
run: npm i -g opvious-cli
- name: Create bucket directory
run: |
bucket="$(mktemp -d)"
sudo chown 1000:1000 "$bucket"
echo "OPVIOUS_BUCKET=$bucket" >>"$GITHUB_ENV"
- name: Start API server
run: |
opvious api start -w \
-b "${{ env.OPVIOUS_BUCKET }}" \
-i latest
env:
OPVIOUS_API_IMAGE_EULA: accepted
- 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/[email protected]
with:
license-key: ${{ secrets.OPVIOUS_LICENSE_KEY }}
- name: Check compatibility
run: ./scripts/check-compatibility.sh
env:
OPVIOUS_ENDPOINT: http://localhost:8080
OPVIOUS_TOKEN: license:${{ secrets.OPVIOUS_LICENSE_KEY }}
- name: Show API logs
if: failure()
run: opvious api logs

0 comments on commit ded6b42

Please sign in to comment.