Merge pull request #7022 from MapServer/dependabot/github_actions/pre… #15
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: Build and test Python MapScript | |
on: | |
push: | |
branches: | |
- '*' | |
except: | |
- /^(cherry-pick-)?backport-\d+-to-/ | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9] | |
env: | |
MAPSCRIPT_PYTHON_ONLY: 'true' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: ./ci/setup.sh | |
- name: Build | |
run: ./ci/build.sh |