-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.6 KB
/
ci.yml
File metadata and controls
53 lines (47 loc) · 1.6 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
name: Continuous Integration
on: push
env:
CARGO_TERM_COLOR: always
jobs:
ci-2024:
runs-on: ubuntu-latest
name: Continuous Integration 2024
steps:
- uses: actions/checkout@v4
- name: Set up cargo cache
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: cargo test
working-directory: ./2024/rust
run: cargo test
# - name: cargo clippy
# working-directory: ./2024/rust
# run: cargo clippy -- -D warnings
- name: cargo fmt
working-directory: ./2024/rust
run: cargo fmt --check
ci-2025:
runs-on: ubuntu-latest
name: Continuous Integration 2025
steps:
# python ci for 2025 and check if files are formatted with black
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install black
working-directory: ./2025/
- name: Check code formatting
run: black --check .
working-directory: ./2025/