Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

api-deploy.yml 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
  1. # # Your workflow name.
  2. # name: Deploy to heroku.
  3. # # Run workflow on every push to main branch.
  4. # on:
  5. # push:
  6. # branches: [mlops_dvc]
  7. # # Your workflows jobs.
  8. # jobs:
  9. # build:
  10. # runs-on: ubuntu-latest
  11. # steps:
  12. # # Check-out your repository.
  13. # - name: Checkout
  14. # uses: actions/checkout@v2
  15. # - name: Set up Python
  16. # uses: actions/setup-python@v2
  17. # - name: Install dependencies
  18. # run: |
  19. # python -m pip install --upgrade pip
  20. # pip install -r requirements.txt
  21. # - name: Run tests
  22. # run: python pytest test_predict.py
  23. # Ton fichier .github/workflows/main.yml
  24. name: Deploy to Heroku
  25. on:
  26. push:
  27. branches:
  28. - mlops_dvc
  29. jobs:
  30. build:
  31. runs-on: ubuntu-latest
  32. steps:
  33. - name: Checkout
  34. uses: actions/checkout@v2
  35. - name: Set up Python
  36. uses: actions/setup-python@v2
  37. - name: Install dependencies
  38. run: |
  39. python -m pip install --upgrade pip
  40. pip install -r requirements.txt
  41. - name: Run tests
  42. run: python -m pytest test_predict.py
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...