-
Notifications
You must be signed in to change notification settings - Fork 0
150 lines (116 loc) · 3 KB
/
main.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: GitHub-CI
on:
push:
branches: [ master ]
paths:
- '**.py'
pull_request:
branches: [ master ]
paths:
- '**.py'
permissions:
contents: read
concurrency:
group: chevah-keycert-${{ github.ref }}
cancel-in-progress: true
env:
CHEVAH_BUILD: "build-py3"
jobs:
ubuntu:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Cache build
uses: actions/cache@v3
with:
path: |
build-py3
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: |
./pythia.sh deps
- name: Rename build to unicode
run: mv build-py3 build-py3-ț
- name: Test
run: ./pythia.sh test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CHEVAH_BUILD: 'build-py3-ț'
- name: Rename build from unicode for cache
run: mv build-py3-ț build-py3
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Cache build
uses: actions/cache@v3
with:
path: |
build-py3
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: ./pythia.sh deps
- name: Test
run: ./pythia.sh test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Cache build
uses: actions/cache@v3
with:
path: |
build-by3
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: sh ./pythia.sh deps
- name: Test
run: sh ./pythia.sh test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
keys-interop:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
config:
- test_type: "--load dsa"
- test_type: "--load rsa"
- test_type: "--load ecdsa"
- test_type: "--load ed25519"
- test_type: "--generate ' '" # We generate all key types
steps:
- uses: actions/checkout@v4
- name: Cache build
uses: actions/cache@v3
with:
path: |
build-py3
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: |
sudo apt-get --quiet install putty-tools
./pythia.sh deps
- name: Test
run: ./pythia.sh test_interop ${{ matrix.config.test_type }}
lint:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Cache build
uses: actions/cache@v3
with:
path: |
build-py3
key: ${{ runner.os }}-${{ hashFiles('setup.py') }}
- name: Deps
run: |
./pythia.sh deps
- name: Lint
run: ./pythia.sh lint