mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Should help with nodeenv failing in CI tests, e.g. ``` Installing node into /home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage with nodeenv. * Install prebuilt node (18.12.1) .Incomplete read while readingfrom https://nodejs.org/download/release/v18.12.1/node-v18.12.1-linux-x64.tar.gz . Traceback (most recent call last): File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/bin/nodeenv", line 10, in <module> sys.exit(main()) File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.7/site-packages/nodeenv.py", line 1104, in main create_environment(env_dir, args) File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.7/site-packages/nodeenv.py", line 980, in create_environment install_node(env_dir, src_dir, args) File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.7/site-packages/nodeenv.py", line 739, in install_node install_node_wrapped(env_dir, src_dir, args) File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.7/site-packages/nodeenv.py", line 762, in install_node_wrapped download_node_src(node_url, src_dir, args) File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.7/site-packages/nodeenv.py", line 602, in download_node_src with ctx as archive: File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.7/site-packages/nodeenv.py", line 573, in tarfile_open tf = tarfile.open(*args, **kwargs) File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/tarfile.py", line 1573, in open saved_pos = fileobj.tell() AttributeError: 'bytes' object has no attribute 'tell' ``` from https://github.com/galaxyproject/galaxy/actions/runs/4883207488/jobs/8714237674?pr=16036
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
name: first startup
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'doc/**'
|
|
- 'lib/galaxy_test/selenium/**'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'doc/**'
|
|
- 'lib/galaxy_test/selenium/**'
|
|
env:
|
|
YARN_INSTALL_OPTS: --frozen-lockfile
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
|
|
test:
|
|
name: Startup test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ['3.7', '3.11']
|
|
defaults:
|
|
run:
|
|
shell: bash -l {0}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
path: 'galaxy root'
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '18.12.1'
|
|
cache: 'yarn'
|
|
cache-dependency-path: 'galaxy root/client/yarn.lock'
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Get full Python version
|
|
id: full-python-version
|
|
shell: bash
|
|
run: echo "version=$(python -c 'import sys; print("-".join(str(v) for v in sys.version_info))')" >> $GITHUB_OUTPUT
|
|
- name: Cache pip dir
|
|
uses: actions/cache@v3
|
|
id: pip-cache
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
|
|
- name: Cache tox env
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: .tox
|
|
key: tox-cache-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('galaxy root/requirements.txt') }}-first-startup
|
|
- name: Install tox
|
|
run: pip install tox
|
|
- name: run tests
|
|
run: tox -e first_startup
|
|
working-directory: 'galaxy root'
|