xonshlib #218
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: xonshlib | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| pythonVersion: | |
| pull_request: | |
| paths: | |
| - xonshlib/** | |
| - .github/workflows/xonshlib.yml | |
| schedule: | |
| - cron: '0 11 * * *' # Run nightly at 11am UTC (3am Pacific, 6am Eastern) | |
| env: | |
| XONSHLIB_PYTHON_VERSION: ${{ inputs.pythonVersion || '3.13' }} | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: xonshlib | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pytest: | |
| name: pytest (unit tests) | |
| continue-on-error: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.XONSHLIB_PYTHON_VERSION }} | |
| - run: pip install -r requirements.txt | |
| - name: pytest | |
| run: pytest --verbose --full-trace --color=no --strict-config | |
| pyink: | |
| name: pyink (code format) | |
| continue-on-error: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.XONSHLIB_PYTHON_VERSION }} | |
| - run: pip install -r requirements.txt | |
| - name: pyink | |
| run: pyink --check --diff --verbose --no-color . | |
| pyright: | |
| name: pyright (type annotation check) | |
| continue-on-error: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.XONSHLIB_PYTHON_VERSION }} | |
| - run: pip install -r requirements.txt | |
| - name: pyright | |
| run: pyright --warnings --stats | |
| flake8: | |
| name: flake8 (code linter) | |
| continue-on-error: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.XONSHLIB_PYTHON_VERSION }} | |
| - run: pip install -r requirements.txt | |
| - name: flake8 | |
| run: flake8 --verbose --color=never --count --show-source --doctests |