-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.02 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 }}
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 }}
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()"