-
Notifications
You must be signed in to change notification settings - Fork 35
74 lines (58 loc) · 1.53 KB
/
pymake-linting-install.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
name: pymake linting/installation
on:
schedule:
- cron: '0 3 * * 3' # run at 3 AM UTC every Wednesday
push:
pull_request:
branches:
- master
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pymake_lint:
name: pymake linting
runs-on: ubuntu-latest
if: github.repository_owner == 'modflowpy'
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.19.1
manifest-path: "pixi.toml"
- name: Lint
run: pixi run check-lint
- name: Check format
run: pixi run check-format
pymake_setup:
name: standard installation
runs-on: ubuntu-latest
strategy:
fail-fast: false
defaults:
run:
shell: bash
steps:
- name: Checkout pymake repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Upgrade pip and install build and twine
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Base pymake installation
run: |
pip --verbose install .
- name: Print pymake version
run: |
python -c "import pymake; print(pymake.__version__)"
- name: Build pymake, check dist outputs
run: |
python -m build
twine check --strict dist/*