-
Notifications
You must be signed in to change notification settings - Fork 358
Expand file tree
/
Copy pathaction.yml
More file actions
51 lines (51 loc) · 1.89 KB
/
action.yml
File metadata and controls
51 lines (51 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: 'Start Build'
description: 'Last composite action before tests are run'
runs:
using: "composite"
steps:
- id: cache-objects
uses: actions/cache@v5
with:
path: ~/.cache
key: reqs_${{ hashFiles('poetry.lock') }}
restore-keys: reqs_
- uses: ./.github/actions/build-es
with:
ELASTICSEARCH_ARCHIVE: ${{ env.ELASTICSEARCH_ARCHIVE }}
- uses: ./.github/actions/build-es6
with:
ELASTICSEARCH6_ARCHIVE: ${{ env.ELASTICSEARCH6_ARCHIVE }}
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install lxml
shell: bash
run: |
sudo apt update
sudo apt-get install libxml2-dev libxslt-dev python3
- name: Copy Settings
shell: bash
run: |
cp website/settings/local-ci.py website/settings/local.py
cp api/base/settings/local-ci.py api/base/settings/local.py
mkdir -p ~/preprints
touch ~/preprints/index.html
- name: PIP install
shell: bash
run: |
# pinned pip to 21.0a and setuptools<58.0.0 as current dependencies do not build on newer versions of pip and setuptools
pip install poetry==1.8.0
poetry install --no-root --without release
- name: Other installs
shell: bash
run: |
# bumped psycopg to match requirements.txt, as otherwise build would fail
poetry run python3 -m invoke ci-addon-settings
pip uninstall uritemplate.py --yes
# use yarn add --exact to match versions in yarn.lock w/o installing all deps
yarn add --exact bower@^1.8.8
yarn add --exact @centerforopenscience/list-of-licenses@^1.1.0
# styles.git is a ruby project that contains a lot of useful data files. This
# just clones the repo into bower_components, where we can access them.
./node_modules/.bin/bower install "https://github.com/CenterForOpenScience/styles.git#88e6ed31a91e9f5a480b486029cda97b535935d4"