-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (36 loc) · 1.1 KB
/
python-package.yml
File metadata and controls
46 lines (36 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This workflow will for a variety of Python versions
# - build a python package using pixi
# - run tests on the produced package
# - upload the package as an artifact
#
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Create Python Package using pixi
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v5
- name: Setup Pixi
uses: ./.github/actions/setup-pixi
- name: Set Python version
run: pixi add python=${{ matrix.python-version }}
- name: Build package
run: pixi run build
- name: Run tests with tox
run: pixi run tox
- uses: actions/upload-artifact@v4
with:
name: EasyScience - Python ${{ matrix.python-version }}
path: ${{ github.workspace }}/dist/*
overwrite: true