-
Notifications
You must be signed in to change notification settings - Fork 241
85 lines (83 loc) · 2.36 KB
/
ci.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
name: paasta-ci
on:
push:
branches:
- master
tags:
- v*.*
pull_request:
release:
jobs:
tox:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
toxenv:
- py38-linux,docs,mypy,tests
- general_itests
env:
DOCKER_REGISTRY: ""
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- run: python -m pip install --upgrade pip
- run: pip install coveralls tox==3.2 tox-pip-extensions==1.3.0 ephemeral-port-reserve
- run: tox -e ${{ matrix.toxenv }}
k8s_itests:
runs-on: ubuntu-20.04
env:
DOCKER_REGISTRY: ""
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- run: python -m pip install --upgrade pip virtualenv
- run: curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- run: python -m pip install --upgrade pip
- run: pip install coveralls tox==3.2 tox-pip-extensions==1.3.0 ephemeral-port-reserve
- run: make k8s_itests
build_debs:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
dist: [bionic, jammy]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- run: sudo apt-get update
- run: sudo apt-get install -yq devscripts
- run: make itest_${{ matrix.dist }}
- uses: actions/upload-artifact@v3
with:
name: deb-${{ matrix.dist }}
path: dist/paasta-tools_*.deb
cut_release:
runs-on: ubuntu-22.04
needs: build_debs
steps:
- uses: actions/checkout@v2
- run: mkdir -p dist/
- uses: actions/download-artifact@v3
with:
name: deb-bionic
path: dist/
- uses: actions/download-artifact@v3
with:
name: deb-jammy
path: dist/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
generate_release_notes: true
files: |
dist/paasta-tools_*.deb
fail_on_unmatched_files: true