forked from canonical/dotrun
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.36 KB
/
pr.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
43
44
45
46
47
48
49
50
51
name: PR
on: pull_request
jobs:
test-dotrun-ubuntu:
runs-on: ubuntu-latest
name: Test dotrun on Ubuntu (snapcraft.io project)
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dotrun
run: pip3 install .
- name: Install newest version of curl for --retry-all-errors support
run: sudo snap install curl
- name: Test snapcraft.io
run: |
git clone https://github.com/canonical-web-and-design/snapcraft.io
chmod -R 777 snapcraft.io
cd snapcraft.io
dotrun & sleep 10 && /snap/bin/curl --head --fail --retry-delay 10 --retry 30 --retry-all-errors http://localhost:8004
lint-python:
runs-on: ubuntu-latest
name: Lint python
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
python3 -m pip install --upgrade pip
sudo pip3 install flake8 black
- name: Lint Python
run: flake8 . && black --line-length 79 --check .
check-inclusive-naming:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check inclusive naming
uses: canonical-web-and-design/inclusive-naming@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
fail-on-error: true