diff options
author | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2021-08-02 17:16:55 +1000 |
---|---|---|
committer | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2021-08-02 17:16:55 +1000 |
commit | 3d24493dcfa66a32dd68d71988782ac977a548f0 (patch) | |
tree | dc1d2c0b9e464c6d55665f344fc310e04e25eecb /.github | |
parent | 646da90eaa4408fee0fb76b0a75476c2e2c2460d (diff) | |
download | mod_wsgi-3d24493dcfa66a32dd68d71988782ac977a548f0.tar.gz |
Split build from test.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/main.yml | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f4e9d5..184526f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,27 +5,45 @@ on: pull_request: branches: - develop - workflow_dispatch: jobs: + build: + name: "Build mod_wsgi packages" + runs-on: "ubuntu-20.04" + steps: + - uses: "actions/checkout@v2" + - uses: "actions/setup-python@v2" + with: + python-version: "3.9" + output-dir: dist + - name: "Build mod_wsgi packages" + run: ./package.sh && ls -las dist + - name: "Store built packages" + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/* + tests: - name: "Python ${{ matrix.python-version }}" + name: "Test mod_wsgi package (Python ${{ matrix.python-version }})" runs-on: "ubuntu-20.04" strategy: fail-fast: false matrix: python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10-dev"] steps: - - uses: "actions/checkout@v2" - uses: "actions/setup-python@v2" with: python-version: "${{ matrix.python-version }}" - - name: Install extra dependencies + - name: "Download built packages" + uses: actions/download-artifact@v2 + with: + name: dist + path: dist + - name: "Install Apache package" run: sudo apt install -y apache2-dev - name: "Update pip installation" run: python -m pip install --upgrade pip setuptools wheel - - name: "Build mod_wsgi packages" - run: ./package.sh && ls -las dist - name: "Install mod_wsgi-express" run: python -m pip install --verbose dist/mod_wsgi-[0-9].*.tar.gz - name: "Run mod_wsgi-express test" |