Try simplifying the workflow.
@@ -85,7 +85,7 @@ jobs:
script -e -c "tox -e pypyjion"
unit_tests:
- name: Run Unit Tests And Install Checks
+ name: Unit Tests ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
timeout-minutes: 8
@@ -103,6 +103,7 @@ jobs:
- 3.9
- "3.10"
- pypy3
+ - pyjion
os:
- ubuntu-latest
@@ -112,15 +113,39 @@ jobs:
fetch-depth: 1
- name: Use Python ${{ matrix.python_version }}
+ if: ${{ matrix.python_version != 'pyjion' }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: Install OS / deb dependencies
+ if: ${{ matrix.python_version != 'pyjion' }}
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq gcc libvirt-dev
+ - name: Use Python 3.10
+ if: ${{ matrix.python_version == 'pyjion' }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: "3.10"
+
+ # From https://github.com/tonybaloney/Pyjion/blob/develop/main/.github/workflows/benchmark.yml#L26
+ - name: Install OS / deb dependencies
+ if: ${{ matrix.python_version == 'pyjion' }}
+ run: |
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq cmake llvm-9 clang-9 autoconf automake \
+ libtool build-essential python curl git lldb-6.0 liblldb-6.0-dev \
+ libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev \
+ libssl-dev libnuma-dev libkrb5-dev zlib1g-dev
+
+ - name: Setup Dotnet 6
+ if: ${{ matrix.python_version == 'pyjion' }}
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: "6.0.100"
+
- name: Cache Python Dependencies
uses: actions/cache@v2
with:
@@ -138,7 +163,7 @@ jobs:
script -e -c "tox -e py${{ matrix.python_version }}"
- name: Run dist install checks tox target
- if: ${{ matrix.python_version != 'pypy3' }}
+ if: ${{ matrix.python_version != 'pypy3' and matrix.python_version != 'pyjion' }}
run: |
script -e -c "tox -e py${{ matrix.python_version }}-dist,py${{ matrix.python_version }}-dist-wheel"
