Skip to content

Commit

Permalink
update CI for Python3.12 (#228)
Browse files Browse the repository at this point in the history
* update CI for Python3.12

* update CI for Python3.12

* update CI for Python3.12

* update CI for Python3.12

* update CI for Python3.12

* separate Python 3.12 CI testing
  • Loading branch information
rpreen authored Aug 16, 2024
1 parent c8e6aaa commit 3d21a96
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths-ignore:
- '**.md'
- '**.cff'
workflow_dispatch:

jobs:
build:
Expand All @@ -17,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- name: Checkout
Expand All @@ -28,9 +29,21 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: venv activate Ubuntu/macOS
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
run: |
python -m venv venv-acro
source ./venv-acro/bin/activate
- name: venv activate Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
python -m venv venv-acro
venv-acro\Scripts\activate.bat
- name: Install acro and pytest
run: pip install . pytest
run: python -m pip install . pytest

- name: Run pytest
run: pytest .
run: python -m pytest .
...
42 changes: 42 additions & 0 deletions .github/workflows/tests_python312.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Test Python312

on: workflow_dispatch

jobs:
build:
name: ${{ matrix.os }}-Python${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.12']

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: venv activate Ubuntu/macOS
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
run: |
python -m venv venv-acro
source ./venv-acro/bin/activate
- name: venv activate Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
python -m venv venv-acro
venv-acro\Scripts\activate.bat
- name: Install acro and pytest
run: python -m pip install . pytest

- name: Run pytest
run: python -m pytest .
...

0 comments on commit 3d21a96

Please sign in to comment.