Skip to content

cicd: fix after adding __init__.py in #2 #17

cicd: fix after adding __init__.py in #2

cicd: fix after adding __init__.py in #2 #17

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: [ubuntu-latest]
container:
image: python:3.9
steps:
- name: Checkout code.
uses: actions/checkout@v4
- name: Prepare.
run : |
pip install -r requirements.txt
pip install pytest
- name: Run tests.
run : |
python -m pytest tests/test_topology.py
install-as-package:
runs-on: [ubuntu-latest]
container:
image: python:3.9
steps:
- name: Prepare.
run : |
apt update
apt --yes --no-install-recommends install hwloc
- name: Install as package.
run : |
pip3 install git+https://github.com/uliegecsm/hwloc-xml-parser.git@${{ github.sha }}
- name: Test package.
run : |
python3 -c "from hwloc_xml_parser.topology import SystemTopology; topo = SystemTopology()"