-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) 路 1021 Bytes
/
Copy pathgithub-docker-build.yml
File metadata and controls
43 lines (34 loc) 路 1021 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
43
name: Docker build
on:
push:
pull_request:
schedule:
- cron: '36 6 * * *'
jobs:
tests:
if: ${{ vars.DOMAIN == 'github.com' }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
steps:
- name: Clone and checkout branch
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build project
run: make
- name: Run tests
run: make test
build:
if: ${{ vars.CICD_DOMAIN == 'github.com' }}
name: Build
needs: tests
runs-on: ubuntu-latest
steps:
- name: Clone and checkout branch
uses: actions/checkout@v2
- name: Build docker image
run: docker build -t test-tag .