forked from seed-labs/seed-emulator
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (69 loc) · 2.2 KB
/
on-pull-request.yaml
File metadata and controls
73 lines (69 loc) · 2.2 KB
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
name: Check Pull Request
on:
pull_request:
branches:
- workflow
jobs:
# flake8-lint:
# permissions:
# pull-requests: write
# runs-on: ubuntu-latest
# name: Lint
# steps:
# - name: Check out source repository
# uses: actions/checkout@v3
# - name: Set up Python environment
# uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Run linter and comment PR
# uses: matias-martini/flake8-pr-comments-action@main
# with:
# github_token: ${{ github.token }}
run-tests:
name: Run Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out the source repository
uses: actions/checkout@4
- name: Set up Python
uses: actions/setup-python@5
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: "**/*requirements.txt"
- run: pip install -r requirements.txt -r dev-requirements.txt -r tests/requirements.txt
- name: Get scion-pki
run: |
curl -fsSL -O https://github.com/scionproto/scion/releases/download/v0.12.0/scion_0.12.0_amd64_linux.tar.gz
mkdir bin
tar -C bin -xzf scion_0.12.0_amd64_linux.tar.gz scion-pki
- name: Run tests
run: |
source development.env
export PATH=$PATH:$PWD/bin
tests/run-tests.py
verify-examples:
name: Verify Examples
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out the source repository
uses: actions/checkout@4
- name: Set up Python
uses: actions/setup-python@5
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: "**/*requirements.txt"
- run: pip install -r requirements.txt -r dev-requirements.txt -r tests/requirements.txt
- name: Get scion-pki
run: |
curl -fsSL -O https://github.com/scionproto/scion/releases/download/v0.12.0/scion_0.12.0_amd64_linux.tar.gz
mkdir bin
tar -C bin -xzf scion_0.12.0_amd64_linux.tar.gz scion-pki
- name: Verify Examples
run: tests/test-examples.py