Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: python matrix build #6

Merged
merged 1 commit into from
Mar 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 31 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,28 @@ on:
- cron: 0 6 1 * *
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
setup:

strategy:
matrix:
python_version: ["3.5.10", "3.6.15", "3.7.17", "3.8.18", "3.9.19", "3.10.14", "3.11.8", "3.12.2"]
fail-fast: false
name: setup - Python ${{ matrix.python-version }}
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.5
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.5.10"
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements/development.txt
Expand All @@ -33,14 +41,18 @@ jobs:
lint:
needs:
- setup
strategy:
matrix:
python_version: ["3.5.10", "3.6.15", "3.7.17", "3.8.18", "3.9.19", "3.10.14", "3.11.8", "3.12.2"]
fail-fast: false
name: Lint - Python ${{ matrix.python-version }}
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.5
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.5.10"
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements/development.txt
Expand All @@ -55,14 +67,18 @@ jobs:
test:
needs:
- setup
strategy:
matrix:
python_version: ["3.5.10", "3.6.15", "3.7.17", "3.8.18", "3.9.19", "3.10.14", "3.11.8", "3.12.2"]
fail-fast: false
name: Test - Python ${{ matrix.python-version }}
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.5
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.5.10"
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements/development.txt
Expand Down
Loading