Get the project working with Wagtail 4.1+ #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
test-python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install NPM and dependencies | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '12.x' | |
- name: Build client | |
run: | | |
npm install --prefix ./longclaw/client | |
npm run build --prefix ./longclaw/client | |
- name: Upload client | |
uses: actions/upload-artifact@v2 | |
with: | |
name: client | |
path: ./longclaw/core/static/core/js | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox tox-gh-actions | |
- name: Download client | |
uses: actions/download-artifact@v2 | |
with: | |
name: client | |
path: ./longclaw/core/static/core/js | |
- name: Test with tox | |
run: tox |