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

update CI for Python3.12 #228

Merged
merged 6 commits into from
Aug 16, 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
19 changes: 16 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ on:
paths-ignore:
- '**.md'
- '**.cff'
workflow_dispatch:

jobs:
build:
@@ -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
@@ -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 .
...