Skip to content

Commit d4def43

Browse files
authored
Merge pull request #14 from mozilla-services/switch-to-github-actions
Switch to GitHub actions
2 parents 52939c9 + ccbc069 commit d4def43

4 files changed

Lines changed: 83 additions & 48 deletions

File tree

.circleci/config.yml

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

.github/workflows/lint.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
7+
name: Lint
8+
jobs:
9+
chore:
10+
name: Lint and check format
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.x"
19+
20+
- name: Setup virtualenv
21+
run: |
22+
pip install -U pip
23+
python3 -m venv .venv
24+
25+
- name: Print environment
26+
run: |
27+
source .venv/bin/activate
28+
python --version
29+
pip --version
30+
31+
- name: Install all dependencies
32+
run: |
33+
source .venv/bin/activate
34+
pip install -r requirements.txt
35+
pip install -r requirements_dev.txt
36+
pip install pre-commit
37+
38+
- name: Lint
39+
run: |
40+
source .venv/bin/activate
41+
pre-commit run --all-files --show-diff-on-failure

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
7+
name: Test
8+
jobs:
9+
chore:
10+
name: Run unit tests
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.x"
19+
20+
- name: Setup virtualenv
21+
run: |
22+
pip install -U pip
23+
python3 -m venv .venv
24+
25+
- name: Print environment
26+
run: |
27+
source .venv/bin/activate
28+
python --version
29+
pip --version
30+
31+
- name: Install all dependencies
32+
run: |
33+
source .venv/bin/activate
34+
pip install -r requirements.txt
35+
pip install -r requirements_dev.txt
36+
37+
- name: Test
38+
run: |
39+
source .venv/bin/activate
40+
py.test

tests/test_autograph_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
STAGE_CERT_CHAIN = open(STAGE_CERT_PATH, "rb").read()
6666
STAGE_CERT_LIST = autograph_utils.split_pem(STAGE_CERT_CHAIN)
6767
STAGE_ROOT_HASH = decode_mozilla_hash(
68-
"3C:01:44:6A:BE:90:36:CE:A9:A0:9A:CA:A3:A5:20:AC:"
69-
+ "62:8F:20:A7:AE:32:CE:86:1C:B2:EF:B7:0F:A0:C7:45"
68+
"DB:74:CE:58:E4:F9:D0:9E:E0:42:36:BE:6C:C5:C4:F6:"
69+
+ "6A:E7:74:7D:C0:21:42:7A:03:BC:2F:57:0C:8B:9B:90"
7070
)
7171

7272

0 commit comments

Comments
 (0)