Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Fix Flyio GH action (#672)
Browse files Browse the repository at this point in the history
Fix Flyio Github action

---------

Co-authored-by: Alexander Guschin <1aguschin@gmail.com>
  • Loading branch information
aminalaee and aguschin authored May 11, 2023
1 parent 1de0fc2 commit 5e450b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/check-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,18 @@ jobs:
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_TEAM: iterative-sandbox
- name: Run Flyctl tests
- name: Setup Flyio
uses: superfly/flyctl-actions/setup-flyctl@master
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.9'
run: |
curl -L https://fly.io/install.sh | sh
pytest -k 'flyctl'
- name: Run Flyio tests
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.9'
run: pytest -k 'flyio'
- name: Start minikube
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.9'
uses: medyagh/setup-minikube@master
- name: Run tests
timeout-minutes: 40
run: pytest -k 'not heroku'
run: pytest -k 'not heroku and not flyio'
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion tests/contrib/test_flyio.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from mlem.contrib.flyio.utils import FlyioStatusModel


def test_create_app(tmp_path: Path):
def test_flyio_create_app(tmp_path: Path):
flyio_app = FlyioApp(org="org", app_name="test")
flyio_app.dump(str(tmp_path))
state = flyio_app.get_state()
Expand Down

0 comments on commit 5e450b0

Please # to comment.