-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (39 loc) · 1.21 KB
/
main.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
name: Static Checking
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "release/*", "stable", "wip/*" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
seedfarmer-cli:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11","3.12"]
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e .
- name: Ruff Format Check
run: ruff format --check .
- name: Ruff Check
run: ruff check --output-format=github .
- name: Mypy Check
run: mypy ./seedfarmer
- name: PyTest
run: cp test/unit-test/mock_data/seedfarmer.yaml . && pytest