This repository was archived by the owner on Mar 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.43 KB
/
ci.yml
File metadata and controls
55 lines (53 loc) · 1.43 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
53
54
55
name: CI
on:
push:
branches: [ main, dev/* ]
pull_request:
branches: [ main, dev/* ]
jobs:
Quality:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
poetry-version: [1.2.2]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install packages
run: |
poetry install
- name: Style Checks
run: |
poetry run style
Release:
needs: Quality
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):')
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 0
- name: Install Semantic Release
run: |
pip install python-semantic-release==7.28.1
- name: Set git config
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Publish
run: |
semantic-release publish