Skip to content

Commit b2247fc

Browse files
committed
Move workflows to node20
1 parent e4a2653 commit b2247fc

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

.github/workflows/build_docs.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: conda-incubator/setup-miniconda@v2
18+
- uses: conda-incubator/setup-miniconda@v3
1919
with:
2020
auto-update-conda: true
2121
python-version: ${{ matrix.python-version }}
@@ -41,7 +41,7 @@ jobs:
4141
4242
- name: Access rubin-sim-data cache
4343
id: cache-rs
44-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4545
env:
4646
cache-name: cached-rubin-sim-data
4747
with:

.github/workflows/cache.yaml

+5-9
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: conda-incubator/setup-miniconda@v2
15+
- uses: conda-incubator/setup-miniconda@v3
1616
with:
1717
auto-update-conda: true
1818
python-version: ${{ matrix.python-version }}
@@ -22,22 +22,21 @@ jobs:
2222
channel-priority: strict
2323
show-channel-urls: true
2424

25-
- name: Configure conda and install requirements
25+
- name: Configure conda and install minimal requirements for cache
2626
shell: bash -l {0}
2727
run: |
28-
mamba install --quiet --file=requirements.txt
29-
mamba install --quiet --file=test-requirements.txt
28+
mamba install --quiet rubin-scheduler -c conda-forge
3029
3130
- name: Install rubin_sim from git
3231
shell: bash -l {0}
3332
run: |
3433
echo `pwd`
3534
ls ${{ github.workspace }}
36-
python -m pip install . --no-deps
35+
python -m pip install -e . --no-deps
3736
3837
- name: Access rubin-sim-data cache
3938
id: cache-rs
40-
uses: actions/cache@v3
39+
uses: actions/cache@v4
4140
env:
4241
cache-name: cached-rubin-sim-data
4342
with:
@@ -61,6 +60,3 @@ jobs:
6160
ls $RUBIN_SIM_DATA_DIR
6261
echo "__contents of versions.txt__"
6362
cat $RUBIN_SIM_DATA_DIR/versions.txt
64-
65-
66-

.github/workflows/test_and_build.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python-version: ["3.11"]
2525
steps:
2626
- uses: actions/checkout@v4
27-
- uses: conda-incubator/setup-miniconda@v2
27+
- uses: conda-incubator/setup-miniconda@v3
2828
with:
2929
auto-update-conda: true
3030
python-version: ${{ matrix.python-version }}
@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Access rubin-sim-data cache
5151
id: cache-rs
52-
uses: actions/cache@v3
52+
uses: actions/cache@v4
5353
env:
5454
cache-name: cached-rubin-sim-data
5555
with:
@@ -81,7 +81,7 @@ jobs:
8181
pytest -r a -v --cov=rubin_sim --cov=tests --cov-report=xml --cov-report=term --cov-branch
8282
8383
- name: Upload coverage to codecov
84-
uses: codecov/codecov-action@v2
84+
uses: codecov/codecov-action@v4
8585
with:
8686
file: coverage.xml
8787

@@ -98,7 +98,7 @@ jobs:
9898
fetch-depth: 0
9999

100100
- name: Set up Python
101-
uses: actions/setup-python@v4
101+
uses: actions/setup-python@v5
102102
with:
103103
python-version: 3.11
104104
cache: "pip"

test-requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ black>=24.0.0
33
ruff
44
isort
55
pytest-cov
6-

0 commit comments

Comments
 (0)