-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 839 Bytes
/
Copy pathcicd.yaml
File metadata and controls
42 lines (33 loc) · 839 Bytes
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
name: CI
on:
pull_request:
branches: ["main"]
workflow_dispatch:
env:
POETRY_VERSION: 1.5.1
POETRY_VIRTUALENVS_IN_PROJECT: true
jobs:
Build:
runs-on: ubuntu-latest
container: python:3.10-buster
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install System Dependencies
run: |
apt update && apt upgrade -y
apt install -y make curl
- name: Install Poetry
run: |
pip install --upgrade pip
pip install poetry==${{ env.POETRY_VERSION }}
poetry --version
- name: Install Python Dependencies with Poetry
run: |
poetry install --with dev --no-interaction
- name: Lint
run: make lint
- name: Test
run: make test
- name: Deploy
run: make deploy