Skip to content

Commit

Permalink
update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kiraware committed Jan 2, 2024
1 parent c75d3a0 commit 72d7d56
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,23 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Set up python
id: setup-python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/[email protected]
with:
version: 1.6.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,23 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11.0", "3.11.x", "3.12.x"]
poetry-version: ["1.2.2", "1.3.2", "1.4.2", "1.5.1", "1.6.1", "latest"]
fail-fast: false

matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Set up python
id: setup-python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Poetry
uses: snok/[email protected]
with:
version: ${{ matrix.poetry-version }}
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
Expand Down

0 comments on commit 72d7d56

Please sign in to comment.