[nginxctl/helpers.py] string.maketrans import
#60
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 lint & test | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build_2_7: | |
| name: build (2.7) | |
| runs-on: ubuntu-latest | |
| container: coatldev/six:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| python2 --version | |
| pip2 install --upgrade pip setuptools wheel | |
| pip2 install -r requirements.txt | |
| - name: Lint with flake8 | |
| run: | | |
| pip2 install flake8 | |
| flake8 . --count --select=$(printf '%s,' {A..Z}) --ignore='W503,E203' --show-source --max-complexity=13 --max-line-length=119 --statistics | |
| - name: Test with unittest | |
| run: python2 setup.py test | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ 3.8, 3.9, '3.10', 3.11, 3.12, 3.13 ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| python -m pip install -r requirements.txt | |
| - name: Lint with flake8 | |
| run: | | |
| python -m pip install flake8 | |
| flake8 . --count --select=$(printf '%s,' {A..Z}) --ignore='W503,E203' --show-source --max-complexity=13 --max-line-length=119 --statistics | |
| - name: Test with unittest | |
| run: | | |
| python -m unittest discover -s nginxctl/tests |