Skip to content

Commit

Permalink
ci: improve and update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Apr 20, 2024
1 parent 8702790 commit 536570e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
runs-on: macos-11
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: "Set up Python ${{ matrix.python_version }}"
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python_version }}"
- name: pip cache
id: pip-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.*') }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: install core_types plugin
run: pip install -U git+https://github.com/DHARPA-project/kiara_plugin.core_types@develop
- name: install tabular types plugin
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ jobs:
build_python_package:
name: build python package
runs-on: ubuntu-latest
needs:
- test-linux
- mypy-linux
- linting-linux
steps:
- name: Set up Python 3.12
uses: actions/setup-python@v5
Expand Down Expand Up @@ -192,7 +188,7 @@ jobs:
with:
fetch-depth: 0
- name: install kiara_plugin.develop
run: pip install kiara_plugin.develop
run: pip install -U git+https://github.com/DHARPA-project/kiara_plugin.core_types@develop
- name: build conda package
run: kiara build conda pkg --channel dharpa --channel conda-forge --patch-data ci/conda/conda-pkg-patch.yaml --output-folder build-dir .
- name: upload artifacts
Expand Down Expand Up @@ -223,7 +219,7 @@ jobs:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-3.12
- name: install kiara_plugin.develop
run: pip install kiara_plugin.develop
run: pip install -U git+https://github.com/DHARPA-project/kiara_plugin.core_types@develop
- name: Retrieve build distributions
uses: actions/download-artifact@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: "Set up Python ${{ matrix.python_version }}"
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python_version }}"
- name: pip cache
id: pip-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.*') }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: install core_types plugin
run: pip install -U git+https://github.com/DHARPA-project/kiara_plugin.core_types@develop
- name: install tabular types plugin
Expand Down
4 changes: 2 additions & 2 deletions ci/conda/conda-pkg-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ requirements:
docstring-parser: docstring_parser

channels:
- conda-forge
- dharpa
- conda-forge

entry_points:
kiara: kiara.interfaces.cli:cli

host_requirements:
- pip
- python
- setuptools<=63
- setuptools
- setuptools_scm
- setuptools_scm_git_archive

Expand Down

0 comments on commit 536570e

Please sign in to comment.