Skip to content

Commit be7ca94

Browse files
committed
add ci workflow
1 parent 774775a commit be7ca94

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: ${{ github.repository }}
11+
12+
jobs:
13+
ci:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: docker/setup-buildx-action@v3
18+
- name: build ci image
19+
uses: docker/build-push-action@v5
20+
with:
21+
context: .
22+
tags: teufa:ci
23+
target: ci
24+
load: true
25+
cache-from: type=gha
26+
cache-to: type=gha,mode=max
27+
push: false
28+
- name: run pytest
29+
uses: addnab/docker-run-action@v3
30+
with:
31+
image: teufa:ci
32+
run: pytest

0 commit comments

Comments
 (0)