-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (39 loc) · 1.03 KB
/
ci.yaml
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:
push:
branches:
- main
pull_request:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: abatilo/actions-poetry@v4
with:
poetry-version: "2.1.1"
- name: Install Dependencies
run: |
poetry install
# Update output format to enable automatic inline annotations.
- name: Lint check
run: poetry run ruff check --output-format=github .
- name: Unit test
run: poetry run pytest
docker-build:
name: Build wfsrv docker image
uses: ./.github/workflows/reusable-docker-build-push.yaml
with:
bake-target: workflowserver
image-name: wfsrv
image-tag: ${{ github.sha }}