Skip to content

markdownlint -> pymarkdown #98

markdownlint -> pymarkdown

markdownlint -> pymarkdown #98

Workflow file for this run

name: Pull Request CI
on:
pull_request:
branches:
- main
paths-ignore:
- README.md
- CHANGELOG.md
- LICENSE
- AUTHORS.md
- CONTRIBUTING.md
- docs/**
- mkdocs.yml
- ".github/**/*"
- "!.github/workflows/pr-ci.yml"
defaults:
run:
shell: bash -l {0}
jobs:
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
py3version: ["10", "11", "12"]
fail-fast: false
uses: arup-group/actions-city-modelling-lab/.github/workflows/python-install-lint-test.yml@main
with:
os: ${{ matrix.os }}
py3version: ${{ matrix.py3version }}
lint: false
upload_to_codecov: false
build-template:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
environment-name: ${{ github.event.repository.name }}-cookiecutter
create-args: >-
cookiecutter
python=3.12
post-cleanup: all
cache-environment: true
- name: install package
run: cookiecutter --no-input .
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: built-package
path: python_boilerplate/
if-no-files-found: error
retention-days: 5
include-hidden-files: true
test-template:
runs-on: [ubuntu-latest, windows-latest]
needs: build-template
steps:
- name: Download built package
uses: actions/download-artifact@v4
with:
name: built-package
path: "."
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
environment-name: built-template-env
environment-file: requirements/base.txt
create-args: >-
-f requirements/dev.txt
git
python=3.12
post-cleanup: all
cache-environment: false
- name: Install package
run: pip install --no-dependencies -e .
- name: Install jupyter kernel
run: python -m ipykernel install --user --name python_boilerplate
- name: Initialise as git repo
run: git init . && git add .
- name: Linting
uses: pre-commit/action@v3.0.1 # run code linting and formatting with ruff
- name: run tests
run: pytest
- name: Test that docs build
run: mkdocs build