This repository was archived by the owner on Mar 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
170 lines (150 loc) · 3.95 KB
/
Copy pathtest.yml
File metadata and controls
170 lines (150 loc) · 3.95 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: Tests
on:
push
jobs:
elixir-dialyzer:
if: contains(github.ref, 'elixir/')
name: Dialyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.18.3'
otp-version: '27.3.2'
- name: Install dependencies
run: mix deps.get
# - name: Cache Dialyzer PLT
# uses: actions/cache@v3
# with:
# path: _build/dev/dialyxir_*
# key: plt-${{ runner.os }}-${{ hashFiles('mix.lock') }}
# restore-keys: |
# plt-${{ runner.os }}-
- name: Compile
run: mix compile
- name: Run Dialyzer
run: mix dialyzer
elixir-test:
if: contains(github.ref, 'elixir/')
name: Test Elixir
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-24.04]
otp: [27.x]
elixir: [1.18.3]
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Install dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run tests
run: |
mix compile --force --
mix test w1
test-go:
if: contains(github.ref, 'go/')
name: Test Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: (Go) WK1 tests
working-directory: w1
run: go test -v
python-pylint:
if: contains(github.ref, 'python/')
name: Pylint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Set up virtualenv
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements_test.txt
pip install pylint
- name: (Python) Pylint
run: |
source venv/bin/activate
pylint w1/ --fail-under=9.46 test
python-test:
if: contains(github.ref, 'python/')
name: Test Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: (Python) tests
run: python -m unittest -v */*_test.py
- name: (Python) WK2 tests
run: |
python w2/lonely.py
python w2/grading.py
python w2/bits.py
python w2/diagonal.py
python w2/counting.py
python w2/valleys.py
python w2/pangrams.py
python w2/mars.py
python w2/matrix.py
- name: (Python) WK3 tests
run: |
python w3/permuting.py
python w3/subarray.py
python w3/xor.py
python w3/migratory.py
python w3/triangle.py
python w3/zigzag.py
python w3/exam_two_sets.py
python w3/pages.py
- name: (Python) WK4 tests
run: |
python w4/numbers.py
python w4/rotation.py
python w4/jumps.py
python w4/beautiful.py
python w4/closest.py
python w4/towers.py
python w4/mindiff.py
python w4/ceasar.py
- name: (Python) WK5 tests
run: |
python w5/maxmin.py
python w5/passwd.py
test-typescript:
if: contains(github.ref, 'typescript/')
name: Test TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install pnpm
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: Verify pnpm installation
run: pnpm --version
- name: Install dependencies
run: pnpm install
- name: Run Vitest
run: pnpm vitest run