cicd: fix after adding __init__.py in #2 #16
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: | |
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 : | | |
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()" |