Skip to content

Feature: functions to retrieve numbers of packages, cores, and pus #21

Feature: functions to retrieve numbers of packages, cores, and pus

Feature: functions to retrieve numbers of packages, cores, and pus #21

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 : |
PYTHONPATH=$PWD 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()"