-
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (60 loc) · 1.93 KB
/
check_scripts.yml
File metadata and controls
68 lines (60 loc) · 1.93 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
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@v4
- name: Install uv
uses: astral-sh/setup-uv@1edb52594c857e2b5b13128931090f0640537287 # v5.3.0
with:
version: "0.6.3"
checksum: "b7a37a33d62cb7672716c695226450231e8c02a8eb2b468fa61cd28a8f86eab2"
- name: Install dependencies
run: |
uv venv
source .venv/bin/activate
uv pip install -r pyproject.toml -r algorithm/smart-attack/pyproject.toml -r math/elo-rating/pyproject.toml
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Check Python scripts
run: |
source .venv/bin/activate
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
pylint algorithm/approximate-gcd-experiment/gen_rsa.py --fail-under=9
mypy algorithm/approximate-gcd-experiment/gen_rsa.py
pylint math/elo-rating/sim.py --fail-under=9
mypy math/elo-rating/sim.py
- 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