Skip to content

Commit afd4453

Browse files
committed
Remove cache from github actions
1 parent 4d4b80d commit afd4453

2 files changed

Lines changed: 107 additions & 119 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 53 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -3,62 +3,56 @@ name: Build_MMR_ranges
33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
strategy:
8-
fail-fast: false
9-
matrix:
10-
os: [ubuntu-latest]
11-
python-version: [3.13]
12-
node: [ '10' ]
13-
runs-on: ${{ matrix.os }}
14-
15-
steps:
16-
- uses: actions/checkout@v4
17-
18-
- uses: actions/setup-node@v1
19-
with:
20-
node-version: ${{ matrix.node }}
21-
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
24-
with:
25-
python-version: ${{ matrix.python-version }}
26-
27-
- name: Install uv
28-
run: pip install uv
29-
30-
- name: Install packages
31-
run: uv sync --frozen --no-cache --no-install-project
32-
33-
- name: Cache npm
34-
uses: actions/cache@v2
35-
with:
36-
path: ~/.npm
37-
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }}
38-
39-
- name: Install dependencies (npm)
40-
run: |
41-
npm install
42-
43-
- name: Create data tables (python)
44-
env:
45-
CLIENT_ID: ${{ secrets.CLIENT_ID }}
46-
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
47-
run: |
48-
uv run python main.py
49-
50-
- name: Create website (npm)
51-
run: |
52-
npm run build
53-
54-
- name: Deploy to GitHub Pages
55-
if: github.ref == 'refs/heads/master'
56-
uses: crazy-max/ghaction-github-pages@v2
57-
with:
58-
committer: Deployer Bot <deploy@foo.bar>
59-
author: Deployer Bot <deploy@foo.bar>
60-
allow_empty_commit: false
61-
target_branch: gh-pages
62-
build_dir: build
63-
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest]
11+
python-version: [3.13]
12+
node: ["10"]
13+
runs-on: ${{ matrix.os }}
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node }}
21+
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install uv
28+
run: pip install uv
29+
30+
- name: Install packages
31+
run: uv sync --frozen --no-cache --no-install-project
32+
33+
- name: Install dependencies (npm)
34+
run: |
35+
npm install
36+
37+
- name: Create data tables (python)
38+
env:
39+
CLIENT_ID: ${{ secrets.CLIENT_ID }}
40+
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
41+
run: |
42+
uv run python main.py
43+
44+
- name: Create website (npm)
45+
run: |
46+
npm run build
47+
48+
- name: Deploy to GitHub Pages
49+
if: github.ref == 'refs/heads/master'
50+
uses: crazy-max/ghaction-github-pages@v2
51+
with:
52+
committer: Deployer Bot <deploy@foo.bar>
53+
author: Deployer Bot <deploy@foo.bar>
54+
allow_empty_commit: false
55+
target_branch: gh-pages
56+
build_dir: build
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/run_schedule.yml

Lines changed: 54 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,59 @@
11
name: Build_Schedule
22

33
on:
4-
schedule:
5-
- cron: "30 5,21 * * *"
4+
schedule:
5+
- cron: "30 5,21 * * *"
66

77
jobs:
8-
build:
9-
runs-on: ${{ matrix.os }}
10-
strategy:
11-
fail-fast: True
12-
matrix:
13-
os: [ubuntu-latest]
14-
python-version: [3.13]
15-
node: [ '10' ]
16-
17-
steps:
18-
- uses: actions/checkout@v4
19-
- uses: actions/setup-node@v1
20-
with:
21-
node-version: '${{ matrix.node }}.x'
22-
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
28-
- name: Install uv
29-
run: pip install uv
30-
31-
- name: Install packages
32-
run: uv sync --frozen --no-cache --no-install-project
33-
34-
- name: Cache npm
35-
uses: actions/cache@v2
36-
with:
37-
path: ~/.npm
38-
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }}
39-
40-
- name: Install dependencies (npm)
41-
run: |
42-
npm install
43-
44-
- name: Create data tables (python)
45-
env:
46-
CLIENT_ID: ${{ secrets.CLIENT_ID }}
47-
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
48-
run: |
49-
uv run python main.py
50-
51-
- name: Create website (npm)
52-
run: |
53-
npm run build
54-
55-
- name: Deploy to GitHub Pages
56-
if: github.ref == 'refs/heads/master'
57-
uses: crazy-max/ghaction-github-pages@v2
58-
with:
59-
committer: Deployer Bot <deploy@foo.bar>
60-
author: Deployer Bot <deploy@foo.bar>
61-
allow_empty_commit: false
62-
target_branch: gh-pages
63-
build_dir: build
64-
env:
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: True
12+
matrix:
13+
os: [ubuntu-latest]
14+
python-version: [3.13]
15+
node: ["10"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: "${{ matrix.node }}.x"
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install uv
29+
run: pip install uv
30+
31+
- name: Install packages
32+
run: uv sync --frozen --no-cache --no-install-project
33+
34+
- name: Install dependencies (npm)
35+
run: |
36+
npm install
37+
38+
- name: Create data tables (python)
39+
env:
40+
CLIENT_ID: ${{ secrets.CLIENT_ID }}
41+
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
42+
run: |
43+
uv run python main.py
44+
45+
- name: Create website (npm)
46+
run: |
47+
npm run build
48+
49+
- name: Deploy to GitHub Pages
50+
if: github.ref == 'refs/heads/master'
51+
uses: crazy-max/ghaction-github-pages@v2
52+
with:
53+
committer: Deployer Bot <deploy@foo.bar>
54+
author: Deployer Bot <deploy@foo.bar>
55+
allow_empty_commit: false
56+
target_branch: gh-pages
57+
build_dir: build
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)