Skip to content

Merge pull request #372 from mvdbeek/fix_tool_file_authorization_bina… #473

Merge pull request #372 from mvdbeek/fix_tool_file_authorization_bina…

Merge pull request #372 from mvdbeek/fix_tool_file_authorization_bina… #473

Workflow file for this run

name: pulsar
on: [push, pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
strategy:
matrix:
tox-env: [py37-lint, py37-dist, py37-docs]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: 3.7
- name: Install tox
run: pip install tox
- name: Run lint
run: tox -e ${{ matrix.tox-env }}
mypy:
name: MyPy
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- tox-env: py36-mypy
python: 3.6
- tox-env: py311-mypy
python: 3.11
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Setup pycurl
run: sudo apt update; sudo apt install -y libxml2-dev libxslt1-dev libcurl4-openssl-dev openssh-server
- name: Run tox
run: tox -e ${{ matrix.tox-env }}
test:
name: Run Tests
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- tox-env: py36-test-ci
python: 3.6
- tox-env: py36-test-unit
python: 3.6
- tox-env: py311-test-ci
python: 3.11
- tox-env: py311-test-unit
python: 3.11
- tox-env: py37-install_wheel
python: 3.7
services:
job-files:
image: galaxy/simple-job-files:latest
env:
JOB_FILES_ROOT_DIRECTORY: /tmp
ports:
- '8000:8000'
volumes:
- '/tmp:/tmp:rw'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Run setup
run: .ci/setup_tests.sh
- name: Run tests
run: . local_env.sh; tox -e ${{ matrix.tox-env }}
env:
PULSAR_TEST_KEY: "test_data/testkey"
PULSAR_TEST_EXTERNAL_JOB_FILES_URL: "http://localhost:8000"
PULSAR_TEST_EXTERNAL_JOB_FILES_DIRECTORY: "/tmp"
TEST_WEBAPP_POST_SHUTDOWN_SLEEP: 1
## Can't get the following tests to work - they fall over on the containerized job not being able to
## connect to the host running the Pulsar server for file transfers in stage out/in.
# tes-test:
# name: Run Tests
# runs-on: ubuntu-20.04
# strategy:
# matrix:
# include:
# - tox-env: py37-test-funnel
# python: 3.7
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v3
# with:
# python-version: ${{ matrix.python }}
# - name: Set up Go 1.x
# uses: actions/setup-go@v2
# with:
# go-version: ^1.13
# - name: Pre-fetch required docker containers
# run: docker pull 'galaxy/pulsar-pod-staging:0.15.0.0' && docker pull 'conda/miniconda3'
# - name: Install tox
# run: pip install tox
# - name: Run tests
# run: PULSAR_TEST_INFRASTRUCTURE_HOST="_PLATFORM_AUTO_" FUNNEL_SERVER_TARGET=DEPLOY PULSAR_TES_SERVER_TARGET=http://localhost:8000/ tox -e ${{ matrix.tox-env }}