Cleanup rfc4511.asn and referencing code #120
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 package | |
| on: [push, pull_request] | |
| jobs: | |
| test-python: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.14' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install coveralls | |
| - name: Test | |
| run: | | |
| coverage run --source=asn1tools -m unittest discover -t . -s tests | |
| - name: Coveralls | |
| uses: AndreMiras/coveralls-python-action@develop | |
| test-python-sdist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.14' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Test | |
| run: | | |
| make test-sdist | |
| test-c: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.14' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -qq valgrind -y | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Test | |
| run: | | |
| make test-c | |
| make -C examples/benchmarks/c_source | |
| (cd tests && bash <(curl -s https://codecov.io/bash) -X coveragepy) | |
| examples: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.14' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Test | |
| run: | | |
| env PYTHONPATH=. python examples/benchmarks/codecs.py | |
| env PYTHONPATH=. python examples/hello_world.py | |
| env PYTHONPATH=. python examples/x509_pem.py | |
| env PYTHONPATH=. python examples/compact_extensions_uper/main.py | |
| env PYTHONPATH=. python examples/programming_types/main.py | |
| release: | |
| needs: [test-python, test-python-sdist, test-c, examples] | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.14' | |
| - name: Install pypa/build | |
| run: | | |
| python -m pip install build --user | |
| - name: Build a binary wheel and a source tarball | |
| run: | | |
| git clean -dfx | |
| python -m build --sdist --outdir dist/ . | |
| - name: Publish distribution 📦 to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| skip_existing: true | |
| password: ${{ secrets.pypi_password }} |