forked from sandialabs/sceptre-phenix-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1020 Bytes
/
Copy pathpython.yml
File metadata and controls
44 lines (39 loc) · 1020 Bytes
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
name: python
env:
PYTHON_VERSION: "3.12"
on:
pull_request:
branches: [ "**" ]
paths:
- 'src/python/**.py'
- '.github/workflows/python.yml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
cache-dependency-path: src/python/pyproject.toml
- name: Install dependencies
working-directory: src/python
run: make install-dev
- name: Run checks
working-directory: src/python
run: make check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
cache-dependency-path: src/python/pyproject.toml
- name: Run Tests
working-directory: src/python
run: |
make install-dev
make test