Add docs makefile and update test workflow #2
This file contains hidden or 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: "Python: Run Tests" | |
| on: | |
| push: | |
| branches: [vlm_master] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: ["ubuntu-latest", "windows-latest"] | |
| python-version: ["3.12"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| - name: Setup python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| - name: Install asn1c | |
| run: | | |
| autoreconf -ivf | |
| ./configure | |
| make | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install bitarray pytest | |
| - name: Install example project | |
| run: | | |
| cd extensions/python/example_mod | |
| A1C_PATH="$(pwd)../../../asn1c/asn1c" A1C_SKELETONS_PATH="$(pwd)../../../skeletons" pip install -v . | |
| - name: Run tests | |
| run: | | |
| cd extensions/python/example_mod | |
| pytest |