|
| 1 | +on: |
| 2 | + workflow_call: |
| 3 | + inputs: |
| 4 | + python-version: |
| 5 | + type: string |
| 6 | + description: The version of python to install |
| 7 | + required: true |
| 8 | + runs-on: |
| 9 | + type: string |
| 10 | + description: The runner to run this job on |
| 11 | + required: true |
| 12 | + secrets: |
| 13 | + CODECOV_TOKEN: |
| 14 | + required: true |
| 15 | + |
| 16 | +env: |
| 17 | + # https://github.com/pytest-dev/pytest/issues/2042 |
| 18 | + PY_IGNORE_IMPORTMISMATCH: "1" |
| 19 | + |
| 20 | +jobs: |
| 21 | + run: |
| 22 | + runs-on: ${{ inputs.runs-on }} |
| 23 | + |
| 24 | + steps: |
| 25 | + - name: Checkout |
| 26 | + uses: actions/checkout@v4 |
| 27 | + with: |
| 28 | + # Need this to get version number from last tag |
| 29 | + fetch-depth: 0 |
| 30 | + |
| 31 | + - if: inputs.python-version == 'dev' |
| 32 | + name: Install dev versions of python packages |
| 33 | + uses: ./.github/actions/install_requirements |
| 34 | + |
| 35 | + - if: inputs.python-version == 'dev' |
| 36 | + name: Write the requirements as an artifact |
| 37 | + run: pip freeze --exclude-editable > /tmp/dev-requirements.txt |
| 38 | + |
| 39 | + - if: inputs.python-version == 'dev' |
| 40 | + name: Upload dev-requirements.txt |
| 41 | + uses: actions/upload-artifact@v4 |
| 42 | + with: |
| 43 | + name: dev-requirements |
| 44 | + path: /tmp/dev-requirements.txt |
| 45 | + |
| 46 | + - if: inputs.python-version != 'dev' |
| 47 | + name: Install latest versions of python packages |
| 48 | + uses: ./.github/actions/install_requirements |
| 49 | + with: |
| 50 | + python-version: ${{ inputs.python-version }} |
| 51 | + pip-install: ".[dev,server]" |
| 52 | + |
| 53 | + - name: Deploy local server |
| 54 | + run: ./deployment/build_and_push.sh -r -b |
| 55 | + |
| 56 | + - name: Run system tests |
| 57 | + run: tox -e system_tests_local |
0 commit comments