|
1 |
| -name: CI/CD |
| 1 | +name: CI |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
5 |
| - branches: ['master', 'main', 'dev', 'develop'] |
| 5 | + branches: ['master', 'main'] |
6 | 6 |
|
7 | 7 | pull_request:
|
8 | 8 | branches: ['master', 'main', 'dev', 'develop']
|
9 | 9 |
|
10 | 10 | jobs:
|
11 |
| - build: |
| 11 | + build-on-ubuntu: |
12 | 12 | runs-on: ubuntu-latest
|
13 | 13 | strategy:
|
14 | 14 | fail-fast: false
|
15 | 15 | max-parallel: 3
|
16 | 16 | matrix:
|
17 |
| - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] |
| 17 | + python-version: ['3.9', '3.10', '3.11'] |
18 | 18 | steps:
|
19 | 19 | - uses: actions/checkout@v4
|
20 | 20 | - name: Set up Python ${{ matrix.python-version }}
|
21 | 21 | uses: actions/setup-python@v4
|
22 | 22 | with:
|
23 | 23 | python-version: ${{ matrix.python-version }}
|
24 | 24 |
|
25 |
| - - name: Install Dependencies |
| 25 | + - name: Install Dependencies, Lint and Tests |
26 | 26 | run: |
|
27 |
| - make init |
| 27 | + make init-actions |
28 | 28 |
|
29 |
| - - name: Lint |
| 29 | + build-on-mac: |
| 30 | + runs-on: macos-latest |
| 31 | + strategy: |
| 32 | + fail-fast: false |
| 33 | + max-parallel: 1 |
| 34 | + matrix: |
| 35 | + python-version: ['3.9'] |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v4 |
| 38 | + - name: Set up Python ${{ matrix.python-version }} |
| 39 | + uses: actions/setup-python@v4 |
| 40 | + with: |
| 41 | + python-version: ${{ matrix.python-version }} |
| 42 | + |
| 43 | + - name: Install Dependencies, Lint and Tests |
30 | 44 | run: |
|
31 |
| - make lint |
| 45 | + make init-actions |
32 | 46 |
|
33 |
| - - name: Tests |
| 47 | + - name: Pytest |
34 | 48 | run: |
|
35 | 49 | make pytest
|
36 | 50 |
|
37 |
| - deploy: |
38 |
| - needs: build |
39 |
| - runs-on: ubuntu-latest |
40 |
| - if: github.ref == 'refs/heads/main' && github.event_name == 'push' |
| 51 | + build-on-windows: |
| 52 | + runs-on: windows-latest |
| 53 | + strategy: |
| 54 | + fail-fast: false |
| 55 | + max-parallel: 1 |
| 56 | + matrix: |
| 57 | + python-version: ['3.9'] |
41 | 58 | steps:
|
42 |
| - - uses: actions/checkout@v4 |
43 |
| - - name: Configure Git Credentials |
44 |
| - run: | |
45 |
| - git config user.name github-actions[bot] |
46 |
| - git config user.email 41898282+github-actions[bot]@users.noreply.github.com |
47 |
| - - uses: actions/setup-python@v5 |
48 |
| - with: |
49 |
| - python-version: '3.10' |
50 |
| - - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV |
51 |
| - - uses: actions/cache@v4 |
52 |
| - with: |
53 |
| - key: mkdocs-material-${{ env.cache_id }} |
54 |
| - path: .cache |
55 |
| - restore-keys: | |
56 |
| - mkdocs-material- |
57 |
| - - run: pip install -r requirements-dev.txt |
58 |
| - - run: mkdocs gh-deploy --force |
| 59 | + - uses: actions/checkout@v4 |
| 60 | + - name: Set up Python ${{ matrix.python-version }} |
| 61 | + uses: actions/setup-python@v4 |
| 62 | + with: |
| 63 | + python-version: ${{ matrix.python-version }} |
| 64 | + |
| 65 | + - name: Install Dependencies, Lint |
| 66 | + run: | |
| 67 | + make init-actions |
| 68 | +
|
| 69 | + - name: Pytest |
| 70 | + run: | |
| 71 | + make pytest |
0 commit comments