-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.38 KB
/
check_scripts.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
name: Testing of scripts
"on":
schedule:
- cron: '10 12 * * 5'
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint -r algorithm/smart-attack/requirements.txt
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Check Python scripts
run: |
pylint algorithm/smart-attack/smart_attack.py --fail-under=9
python algorithm/smart-attack/smart_attack.py test
pylint algorithm/ecpp/binary_quad.py --fail-under=9
- name: Check scripts in general
run: |
pushd algorithm/ristretto255 && GITHUB_ACTIONS=1 ./run.sh && popd
- name: Check Go files
run: |
for mod in `go list -f '{{.Dir}}' -m`; do
cd ${mod}
echo module=${mod}
gofmt -l .
test -z `gofmt -l .`
go vet ./...
go build -v ./...
go test -v ./...
done
- name: Check md5-sha1-collision
run: |
cd algorithm/md5-sha1-collision
./run.sh
- name: Check NTRUPrime
run: |
cd algorithm/NTRUPrime
./run.sh