-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (45 loc) · 1.47 KB
/
python-app.yml
File metadata and controls
52 lines (45 loc) · 1.47 KB
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
name: Build/run tgov
on:
push:
branches: [ "main", "diarize-flow" ]
pull_request:
branches: [ "main" ]
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
POETRY_VERSION: "1.3.2"
POETRY_VENV: "/opt/poetry-venv"
S3_BUCKET: ${{ secrets.S3_BUCKET }}
AWS_DEFAULT_REGION: us-east-2
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
set -ex
sudo apt-get update
sudo apt-get install --no-install-suggests --no-install-recommends --yes python3-venv gcc libpython3-dev ffmpeg
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
python3 -m venv "${POETRY_VENV}"
$POETRY_VENV/bin/pip install -U pip setuptools
$POETRY_VENV/bin/pip install "poetry==${POETRY_VERSION}"
/opt/poetry-venv/bin/poetry config virtualenvs.create false
/opt/poetry-venv/bin/poetry install
/opt/poetry-venv/bin/poetry env info
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
with:
role-to-assume: arn:aws:iam::480103772849:role/GithubCFTRole
aws-region: us-east-2
audience: sts.amazonaws.com
- name: Run Diarization
run: |
/opt/poetry-venv/bin/python -m flows.transcribe_meetings