Skip to content

Commit a7ca6a6

Browse files
authored
Merge pull request #1 from scientific-python/test
2 parents 4308eca + d002e14 commit a7ca6a6

4 files changed

Lines changed: 46 additions & 3 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/test_action.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Action
2+
on: [push, pull_request]
3+
4+
jobs:
5+
generate_data:
6+
runs-on: ubuntu-latest
7+
name: Generate version data
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Generate version data using local action
12+
uses: ./
13+
- name: Check file contents
14+
run: |
15+
printf "Contents of chart.md:\n"
16+
cat chart.md
17+
printf "\n\n"
18+
printf "Contents of schedule.json:\n"
19+
cat schedule.json
20+
printf "\n\n"
21+
printf "Contents of schedule.md:\n"
22+
cat schedule.md
23+
printf "\n\n"
24+
- name: Remove generated files
25+
run: |
26+
printf "Removing generated files...\n"
27+
rm -f chart.md schedule.json schedule.md
28+
ls -R
29+
- uses: actions/download-artifact@v4
30+
with:
31+
name: spec-zero-versions
32+
- name: Display structure of downloaded files
33+
run: ls -R

action.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ runs:
1616
shell: bash
1717
run: |
1818
python spec_zero_versions.py
19-
- name: Upload artifact
19+
- name: Upload files as an artifact
2020
uses: actions/upload-artifact@v4
2121
with:
22-
name: ${{ inputs.artifact-name }}
23-
path: "spec_zero_data/*.tar.xz"
22+
name: spec-zero-versions
23+
path: |
24+
schedule.json
25+
schedule.md
26+
chart.md

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
packaging
12
pandas
23
requests

0 commit comments

Comments
 (0)