Feature: functions to retrieve numbers of packages, cores, and pus #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()" |