-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (45 loc) · 1.23 KB
/
main.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
name: CI
on:
push:
branches:
- main
- 'feat/**'
- 'feature/**'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # Use the appropriate version for your project
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make
sudo apt-get install -y git
sudo apt-get install -y curl
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install git-secrets
run: |
git clone https://github.com/awslabs/git-secrets.git
cd git-secrets
sudo make install
git secrets --install
git secrets --register-aws
git secrets --add 'PRIVATE KEY'
- name: Set up Poetry virtual environment
run: |
poetry config virtualenvs.in-project true
poetry install --no-root
- name: Run Makefile tasks
run: |
make all