Skip to content

Commit 5e232f8

Browse files
committed
fix: remove now defunct test_action.yaml
1 parent c588f52 commit 5e232f8

File tree

4 files changed

+22
-67
lines changed

4 files changed

+22
-67
lines changed

.github/workflows/release_schedule.yaml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
create-artifacts:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
contents: write
13+
contents: write
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
with:
18-
# We're going to make a tag that we can we release so we'll need the full history for that
19-
fetch-depth: 0
17+
with:
18+
# We're going to make a tag that we can we release so we'll need the full history for that
19+
fetch-depth: 0
2020
- name: Set up Python
2121
uses: actions/setup-python@v5
2222
with:
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
python spec_zero_versions.py
3030
- name: setup git
31-
run : |
31+
run: |
3232
# git will complain if we don't do this first
3333
git config user.name "GitHub Actions Bot"
3434
git config user.email "<>"
@@ -38,10 +38,9 @@ jobs:
3838
run: |
3939
echo "TAG_NAME=$(date '+%Y-Q%q')" >> "$GITHUB_OUTPUT"
4040
41-
4241
- name: create tag
4342
env:
44-
TAG_NAME: ${{ steps.tag_name.outputs.TAG_NAME }}
43+
TAG_NAME: ${{ steps.tag_name.outputs.TAG_NAME }}
4544
run: |
4645
git add schedule.md chart.md schedule.json
4746
git commit -m "Update SPEC 0 schedule artifacts"
@@ -51,16 +50,12 @@ jobs:
5150
- name: Publish github release
5251
uses: softprops/action-gh-release@v2
5352
env:
54-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5554
with:
5655
generate_release_notes: true
57-
tag_name: ${{ steps.tag_name.outputs.TAG_NAME }}
56+
tag_name: ${{ steps.tag_name.outputs.TAG_NAME }}
5857
make_latest: true
5958
files: |
6059
schedule.md
6160
chart.md
6261
schedule.json
63-
64-
65-
66-

.github/workflows/test_action.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

action.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@ description: "Based on the current SPEC 0 schedule, generate a tarball with the
33
author: Sam Vente
44
inputs:
55
target_branch:
6-
description: 'Target branch for the pull request'
6+
description: "Target branch for the pull request"
77
required: true
8-
default: 'main'
8+
default: "main"
99
tool: # for now only pixi, but good to make others possible from the start
10-
description: 'Which tool you use for managing your environment.'
10+
description: "Which tool you use for managing your environment."
1111
required: true
12-
default: 'pixi'
12+
default: "pixi"
1313
token:
14-
description: 'GitHub token with repo permissions to create pull requests'
14+
description: "GitHub token with repo permissions to create pull requests"
1515
required: true
1616

17-
18-
19-
2017
runs:
2118
using: "composite"
2219
steps:
@@ -43,7 +40,7 @@ runs:
4340
shell: bash
4441
run: gh release download -R "savente93/spec-zero-tools" --pattern schedule.json --clobber
4542

46-
# make usre pixi is available
43+
# make user pixi is available
4744
- uses: prefix-dev/[email protected]
4845
if: ${{ inputs.tool == 'pixi' }}
4946
name: Setup pixi
@@ -65,4 +62,3 @@ runs:
6562
body: "This PR was created automatically"
6663
base: ${{ inputs.target_branch }}
6764
branch: update-spec-0-dependencies-${{ github.run_id }}
68-

readme.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: scientific-python/spec-zero-tools@main
28-
with:
28+
with:
2929
token: ${{ secrets.GH_PAT }}
3030
target_branch: main
3131
tool: pixi
32-
3332
```
3433
3534
Whenever the action is triggered it will open a PR in your repository that will update the dependencies of SPEC 0 to the new lower bound. For this you will have to provide it with a PAT that has write permissions in the `contents` and `pull request` scopes. Please refer to the GitHub documentation for instructions on how to do this [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).
@@ -38,19 +37,17 @@ To help projects stay compliant with SPEC-0, we provide a `schedule.json` file t
3837

3938
Currently the action can take the following inputs:
4039

41-
| Name | Description | Required |
42-
|---------------|-------------------------------------------------------------------------------------------------------------|----------|
43-
| `token` | The token that the action will use to create and update the pull request. See [token](https://github.com/marketplace/actions/create-pull-request#token). | Yes |
44-
| `tool` | Which tool to use for managing your dependencies. Currently `pixi` is the only option. | No |
45-
| `target_branch` | The branch to open a PR against with the updated versions. Defaults to `main`. | No |
46-
40+
| Name | Description | Required |
41+
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
42+
| `token` | The token that the action will use to create and update the pull request. See [token](https://github.com/marketplace/actions/create-pull-request#token). | Yes |
43+
| `tool` | Which tool to use for managing your dependencies. Currently `pixi` is the only option. | No |
44+
| `target_branch` | The branch to open a PR against with the updated versions. Defaults to `main`. | No |
4745

4846
## Limitations
4947

50-
This project is still in progress and thus it comes with some limitations we are working on. Hopefully this will be gone by the time you read this, but currently the limitations are:
48+
This project is still in progress and thus it comes with some limitations we are working on. Hopefully this will be gone by the time you read this, but currently the limitations are:
5149

5250
- Only `pixi` is supported
5351
- if you have a higher bound than the one listed in SPEC 0 this is overwritten
54-
- higher bounds are deleted instead of maintained.
52+
- higher bounds are deleted instead of maintained.
5553
- dependency groups are not yet supported
56-

0 commit comments

Comments
 (0)