Skip to content

adjust run path

adjust run path #172

Workflow file for this run

name: MMPM Build Pipeline
on:
push:
branches:
- "*"
tags:
- "*"
pull_request:
branches:
- "*"
jobs:
mmpm-cli:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Python Dependencies
uses: actions/cache@v2
with:
python-version: ${{ matrix.python-version }}
path: |
~/.cache/pip
key: ${{ runner.os }}-python-${{ hashFiles('**/pyproject.toml') }}
- name: Python Dependencies
run: |
python -m pip install pdm
yes | mypy mmpm --install-types || true
pdm install
- name: Python Tests
run: |
pdm run lint
pdm run mypy
pdm run test
pdm run report
- name: Python Build
run: |
pdm build
- name: Install Test
run: |
pdm install
./__pypackages/${{ matrix.python-version }}/bin/mmpm version
./__pypackages/${{ matrix.python-version }}/bin/mmpm --help
mmpm-ui:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["16.x", "18.x"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Node Modules
uses: actions/cache@v2
with:
path: |
'**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Angular Dependencies
run: |
cd ui && npm install --legacy-peer-deps
- name: Angular Tests
run: |
cd ui && npm run lint
- name: Angular Build
run: |
cd ui && ./node_modules/@angular/cli/bin/ng.js build --configuration production --output-hashing none --base-href /
#package-and-publish:
# needs: [mmpm-cli, mmpm-ui]
# runs-on: ubuntu-latest
# container:
# image: beemar/python3-nodejs:python${PYTHON_VERSION}-nodejs${NODEJS_VERSION}
# steps:
# - uses: actions/checkout@v3
# - name: Package Application
# run: |
# - name: Publish to PyPi
# if: github.ref == 'refs/heads/master' && startsWith(github.ref, 'refs/tags/')
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
# skip_existing: true
# verbose: true