Include Python version in artifact name #107
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
# vim: ft=yaml ts=2 sw=2 et | |
name: LetsDNS project workflow | |
on: push | |
env: | |
CONF: citest.conf | |
jobs: | |
build-documentation: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Generate documentation | |
run: make -C docs cibuild SED_INPLACE="sed -i''" | |
- name: Store documentation artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: LetsDNS-documentation | |
path: docs/build/html/* | |
build-python: | |
name: Python build and tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Check Python code style | |
run: pycodestyle --config=.pycodestyle letsdns/*.py | |
- name: Run tests with coverage | |
run: make -C tests coverage UNITTEST_CONF=$CONF | |
- name: Build Python artifacts | |
run: make dist | |
- name: Store Python artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: LetsDNS-Python-${{ matrix.python-version }} | |
path: dist/* |