Skip to content

Run Pytest in CI

Run Pytest in CI #15

Workflow file for this run

name: Hello World Workflow
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
hello-world-job:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"] # add 3.8 to 3.12 later
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
- name: Poetry Install
run: |
echo "Install [begin]"
poetry self add "poetry-dynamic-versioning[plugin]"
poetry env use python3
poetry install
echo "Install [complete]"
- name: Print Hi using Python
run: python3 -c 'print("Hi")'
- name: ConsoleLog Howdy using NodeJS
run: node -e 'console.log("Howdy")'
- name: NPM ls
run: cd dcp/js && npm ls && cd -