Skip to content

Commit c06ca37

Browse files
committed
init: github workflows
1 parent f425f81 commit c06ca37

4 files changed

Lines changed: 139 additions & 434 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: Format
6+
runs-on: ubuntu-latest
7+
steps:
8+
9+
- uses: actions/checkout@v2
10+
- name: Set up Python 3.7
11+
uses: actions/setup-python@v1
12+
with:
13+
python-version: 3.7
14+
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
19+
# https://issues.redhat.com/browse/PROJQUAY-92
20+
# https://github.com/psf/black/issues/1207#issuecomment-566249522
21+
pip install black --no-binary=regex
22+
23+
- name: Check Formatting
24+
run: |
25+
black --line-length=100 --target-version=py27 --check --diff .
26+
27+
unit:
28+
name: Unit Test
29+
runs-on: ubuntu-latest
30+
steps:
31+
32+
- uses: actions/checkout@v2
33+
- name: Set up Python 2.7
34+
uses: actions/setup-python@v1
35+
with:
36+
python-version: 2.7
37+
38+
- name: Install dependencies
39+
run: |
40+
sudo apt-get install libgpgme-dev libldap2-dev libsasl2-dev
41+
python -m pip install --upgrade pip
42+
pip install tox
43+
44+
- name: tox
45+
run: tox -e py27-unit
46+
47+
registry:
48+
name: E2E Registry Tests
49+
runs-on: ubuntu-latest
50+
steps:
51+
52+
- uses: actions/checkout@v2
53+
- name: Set up Python 2.7
54+
uses: actions/setup-python@v1
55+
with:
56+
python-version: 2.7
57+
58+
- name: Install dependencies
59+
run: |
60+
sudo apt-get install libgpgme-dev libldap2-dev libsasl2-dev
61+
python -m pip install --upgrade pip
62+
pip install tox
63+
64+
- name: tox
65+
run: tox -e py27-registry
66+
67+
legacy-registry:
68+
name: Legacy Registry Tests
69+
runs-on: ubuntu-latest
70+
steps:
71+
72+
- uses: actions/checkout@v2
73+
- name: Set up Python 2.7
74+
uses: actions/setup-python@v1
75+
with:
76+
python-version: 2.7
77+
78+
- name: Install dependencies
79+
run: |
80+
sudo apt-get install libgpgme-dev libldap2-dev libsasl2-dev
81+
python -m pip install --upgrade pip
82+
pip install tox
83+
84+
- name: tox
85+
run: tox -e py27-legacy-registry
86+
87+
docker:
88+
name: Docker Build
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v2
92+
- name: Docker Build
93+
run: docker build .
94+
95+
mysql:
96+
name: E2E MySQL Test
97+
runs-on: ubuntu-latest
98+
steps:
99+
100+
- uses: actions/checkout@v2
101+
- name: Set up Python 2.7
102+
uses: actions/setup-python@v1
103+
with:
104+
python-version: 2.7
105+
106+
- name: Install dependencies
107+
run: |
108+
sudo apt-get install libgpgme-dev libldap2-dev libsasl2-dev docker.io
109+
sudo systemctl unmask docker
110+
sudo systemctl start docker
111+
docker version
112+
python -m pip install --upgrade pip
113+
pip install tox tox-docker
114+
115+
- name: tox
116+
run: tox -e py27-mysql
117+
118+
psql:
119+
name: E2E Postgres Test
120+
runs-on: ubuntu-latest
121+
steps:
122+
123+
- uses: actions/checkout@v2
124+
- name: Set up Python 2.7
125+
uses: actions/setup-python@v1
126+
with:
127+
python-version: 2.7
128+
129+
- name: Install dependencies
130+
run: |
131+
sudo apt-get install libgpgme-dev libldap2-dev libsasl2-dev docker.io
132+
sudo systemctl unmask docker
133+
sudo systemctl start docker
134+
docker version
135+
python -m pip install --upgrade pip
136+
pip install tox tox-docker
137+
138+
- name: tox
139+
run: tox -e py27-psql

.travis.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.

Makefile.ci

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)