generated from pyiron/pyiron_module_template
-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (46 loc) · 1.4 KB
/
push-pull.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
# This runs jobs which pyiron modules should run on pushes or PRs to main
name: Push-main-Pull-all
on:
push:
branches: [ main ]
pull_request:
jobs:
pyiron:
uses: pyiron/actions/.github/workflows/[email protected]
secrets: inherit
with:
docs-env-files: .ci_support/environment.yml
notebooks-env-files: .ci_support/environment.yml
extra-python-paths: tests tests/benchmark tests/integration tests/static tests/unit # For executorlib
python-version-alt3: 'exclude' # No python 3.9
alternate-tests-env-files: .ci_support/lower_bound.yml
alternate-tests-python-version: '3.10'
alternate-tests-dir: tests/unit
mypy:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
architecture: x64
- name: Checkout
uses: actions/checkout@v4
- name: Install mypy
run: pip install mypy
- name: Test
run: mypy --ignore-missing-imports ${{ github.event.repository.name }}
ruff-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
with:
args: check
ruff-sort-imports:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
with:
args: check --select I --fix --diff