repo2rlenv-swe-next / tasks /swe-next-1a113b4bab7fa544fc2b /environment /source /.github /workflows /lint.yml
Download tasks/swe-next-1a113b4bab7fa544fc2b/environment/source/.github/workflows/lint.yml from FineEnvs/repo2rlenv-swe-next: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/datasets/FineEnvs/repo2rlenv-swe-next/resolve/main/tasks/swe-next-1a113b4bab7fa544fc2b/environment/source/.github/workflows/lint.yml
- Command line
-
hf download hf://datasets/FineEnvs/repo2rlenv-swe-next/tasks/swe-next-1a113b4bab7fa544fc2b/environment/source/.github/workflows/lint.yml
-
curl -L -o lint.yml https://huggingface.co/datasets/FineEnvs/repo2rlenv-swe-next/resolve/main/tasks/swe-next-1a113b4bab7fa544fc2b/environment/source/.github/workflows/lint.yml
1.87 kB
| name: Linting | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/lint.yml" | |
| - ".pre-commit-config.yaml" | |
| - "**.py" | |
| push: | |
| paths: | |
| - ".github/workflows/lint.yml" | |
| - ".pre-commit-config.yaml" | |
| - "**.py" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| env: | |
| FORCE_COLOR: 1 | |
| jobs: | |
| lint: | |
| name: nox -s lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| name: Install Python | |
| with: | |
| python-version: "3.10" | |
| cache: "pip" | |
| - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| name: Setup uv | |
| - name: Run `nox -s lint` | |
| run: pipx run nox -s lint -- --show-diff-on-failure | |
| build: | |
| name: Build sdist and wheel | |
| runs-on: ubuntu-latest | |
| # Linting verifies that the project is in an acceptable state to create files | |
| # for releasing. | |
| # And this action should be run whenever a release is ready to go public as | |
| # the version number will be changed by editing __init__.py. | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| name: Setup uv | |
| - name: Build | |
| run: uv build | |
| - name: Build | |
| run: uvx twine check --strict ./dist/* | |
| - name: Archive files | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: dist | |
| path: dist | |