[ci] Use Github Actions instead of Appveyor and Travis CI #3
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: Main workflow | |
on: | |
push: | |
paths-ignore: | |
- 'doc/**' | |
- '**/*.md' | |
- 'LICENSE' | |
- 'example/**' | |
- '.gitignore' | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: | |
- 'doc/**' | |
- '**/*.md' | |
- 'LICENSE' | |
- 'example/**' | |
- '.gitignore' | |
jobs: | |
linux-validate: | |
name: Validate on Linux - Python ${{ matrix.python }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python: [ '3.6', '3.8', '3.12' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
- name: Run tests | |
run: python tests/run_tests.py | |
windows-validate: | |
name: Validate on Windows - Python ${{ matrix.python }} | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python: [ '3.6', '3.8', '3.12' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
- name: Run tests | |
run: python tests/run_tests.py |