forked from Cloud-Drift/clouddrift
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 870 Bytes
/
lint.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
name: Lint
# Controls when the workflow will run
on:
# Triggers on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
environment-name: clouddrift
- run: pip install mypy
shell: micromamba-shell {0}
- run: mypy --install-types --non-interactive --config-file pyproject.toml
shell: micromamba-shell {0}
- run: mypy
shell: micromamba-shell {0}