-
Notifications
You must be signed in to change notification settings - Fork 3
82 lines (77 loc) · 2.1 KB
/
pipeline.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
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
name: Pipeline
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rye
uses: eifinger/setup-rye@v4
- run: |
rye fmt --all --check
rye lint --all
rye run check-types
# test:
# name: Tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Rye
# run: |
# curl -sSf https://rye.astral.sh/get | bash
# - run: |
# rye run run-tests
# type_check:
# name: Type Check
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.10
# uses: actions/setup-python@v2
# with:
# python-version: "3.10"
# - name: Download artifacts
# uses: actions/download-artifact@v2
# with:
# name: artifacts
# path: artifacts
# - name: Install packages
# run: |
# pip install -r artifacts/dev-requirements.txt
# pip install --ignore-installed artifacts/*.whl
# - name: Run MypPy
# run: |
# mypy momba
# documentation:
# name: Documentation
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.10
# uses: actions/setup-python@v2
# with:
# python-version: "3.10"
# - name: Download artifacts
# uses: actions/download-artifact@v2
# with:
# name: artifacts
# path: artifacts
# - name: Install packages
# run: |
# pip install -r artifacts/dev-requirements.txt
# pip install --ignore-installed artifacts/*.whl
# - name: Build documentation
# run: |
# sphinx-build -b dirhtml docs build/docs
# - name: Create CNAME file
# run: |
# echo "momba.dev" > build/docs/CNAME
# - name: Deploy documentation
# if: github.ref == 'refs/heads/main'
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./build/docs