Skip to content

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

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

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

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
set-vars:
uses: ./.github/workflows/set-vars.yml
test:
needs: [set-vars]
runs-on: [ubuntu-latest]
container:
image: '${{ needs.set-vars.outputs.CI_IMAGE }}:latest'
steps:
- name: Checkout code.
uses: actions/checkout@v4
- name: Run tests.
run : |
python -m pytest tests/test_topology.py
install-as-package-and-test:
needs: [set-vars]
runs-on: [ubuntu-latest]
container:
image: '${{ needs.set-vars.outputs.CI_IMAGE }}:latest'
steps:
- name: Install as package.
run : |
pip install git+https://github.com/uliegecsm/hwloc-xml-parser.git@${{ github.sha }}
- name: Test package.
run : |
python -c "from hwloc_xml_parser.topology import SystemTopology; topo = SystemTopology()"