pymake linting/installation #381
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pymake linting/installation | |
on: | |
schedule: | |
- cron: '0 3 * * 3' # run at 3 AM UTC every Wednesday | |
push: | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
pymake_lint: | |
name: pymake linting | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'modflowpy' | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v2 | |
- name: Install packages | |
run: pip install ".[lint]" | |
- name: Lint | |
run: ruff check . | |
- name: Check format | |
run: ruff format . --check | |
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/* | |