-
Notifications
You must be signed in to change notification settings - Fork 2
executable file
·75 lines (62 loc) · 2.19 KB
/
pythonpackage.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 🤖 usage
#
# this file contains the conf for GitHub Continuous Integration
# and Continuous Deployment to Heroku
#
# in order to activate the tests in GitHub CI:
# - uncomment the content of the CI paragraph (lines 41-55)
# - create some tests in the tests/ directory
#
# in order to activate CD to Heroku:
# - activate the tests in GitHub CI
# - uncomment the content of the CD paragraph (lines 57-75)
name: Python package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
# 🤖 CI paragraph
#
# uncomment the content of this paragraph to activate the tests in GitHub CI
# - remove the 2 trailing characters "# ", do not change the spaces
# (the `name` keys should be at the same level as the `uses` key)
# (the `strategy` key should be at the same level as the `steps` key)
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Say hello
run: |
echo "Hello, World!"
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# - name: Install package and test
# run: |
# make install test clean
# strategy:
# matrix:
# python-version: [3.8]
# # 🤖 CD paragraph
# #
# # uncomment the following lines to activate CD to Heroku
# # - remove the 2 trailing characters "# ", do not change the spaces
# # (there should be 2 spaces before the `deploy_heroku` key)
# # - keep in mind you also need to configure Heroku HEROKU_API_KEY and HEROKU_EMAIL in GitHub secrets
# # - and replace REPLACE_WITH_YOUR_HEROKU_APP_NAME in this file with the name of your Heroku app
# deploy_heroku:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: akhileshns/[email protected] # This is the action
# with:
# heroku_api_key: ${{secrets.HEROKU_API_KEY}}
# heroku_app_name: "REPLACE_WITH_YOUR_HEROKU_APP_NAME" # Must be unique in Heroku
# heroku_email: ${{secrets.HEROKU_EMAIL}}