Skip to content

Commit

Permalink
Merge pull request #7 from competitive-verifier/python-version
Browse files Browse the repository at this point in the history
Skippable setup-python
  • Loading branch information
kzrnm authored Oct 15, 2023
2 parents 3dc633e + 934c3e3 commit 6ff4ae9
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 25 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"
cache-pip: true

- name: Check success
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-cs-resolve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ jobs:
- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"

- name: equal
uses: ./testing/verifier-object-equality-action
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:

- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"

- name: No verify-files
id: no-verify-files
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-download-problems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"
cache-pip: true

- name: Download env $COMPETITIVE_VERIFY_FILES_PATH
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-merge-result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"
cache-pip: true

- name: Use glob
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-merge-verify-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"
cache-pip: true

- name: Use glob
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-oj-resolve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"
cache-pip: true

- name: oj-resolve with include
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-verifier-object-equality-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"
cache-pip: true

- name: equal
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:

- name: Set up competitive-verifier
uses: ./setup
with:
python-version: "3.9"

- name: Verify success
id: verify-success
Expand Down
2 changes: 0 additions & 2 deletions merge-result/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ See [action.yml](action.yml) or [competitive-verifier/competitive-verifier](http
```yml
- name: Set up competitive-verifier
uses: competitive-verifier/actions/setup@v1
with:
python-version: "3.9"

- name: Use glob
id: glob
Expand Down
2 changes: 0 additions & 2 deletions merge-verify-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ See [action.yml](action.yml) or [competitive-verifier/competitive-verifier](http
```yml
- name: Set up competitive-verifier
uses: competitive-verifier/actions/setup@v1
with:
python-version: "3.9"

- name: Use glob
id: glob
Expand Down
1 change: 0 additions & 1 deletion setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ See [action.yml](action.yml) or [competitive-verifier/competitive-verifier](http
- name: Set up competitive-verifier
uses: competitive-verifier/actions/setup@v1
with:
python-version: "3.9"
cache-pip: true
```
5 changes: 3 additions & 2 deletions setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ inputs:
required: false
default: competitive-verifier
python-version:
description: Specify python verify_files2.json
description: Specify python version
required: false
default: "3.x"
default: ""
cache-pip:
description: "If true, cache pip"
required: false
Expand All @@ -26,6 +26,7 @@ runs:
steps:
- name: Set up Python
uses: actions/setup-python@v4
if: inputs.python-version != ''
with:
python-version: ${{inputs.python-version}}

Expand Down
2 changes: 0 additions & 2 deletions testing/verifier-object-equality-action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:

- name: Set up competitive-verifier
uses: competitive-verifier/actions/setup@v1
with:
python-version: "3.9"

- name: equal
uses: competitive-verifier/actions/verifier-object-equality-action@v1
Expand Down
2 changes: 0 additions & 2 deletions upload-verify-artifact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ See [action.yml](action.yml) or [competitive-verifier/competitive-verifier](http
```yml
- name: Set up competitive-verifier
uses: competitive-verifier/actions/setup@v1
with:
python-version: "3.9"

- name: Upload artifact
uses: competitive-verifier/actions/upload-verify-artifact@v1
Expand Down
2 changes: 0 additions & 2 deletions verify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ See [action.yml](action.yml) or [competitive-verifier/competitive-verifier](http
```yml
- name: Set up competitive-verifier
uses: competitive-verifier/actions/setup@v1
with:
python-version: "3.9"

# Create verify_files.json
# ...
Expand Down

0 comments on commit 6ff4ae9

Please sign in to comment.