Skip to content

Commit

Permalink
Another try
Browse files Browse the repository at this point in the history
  • Loading branch information
hartmans committed Nov 28, 2023
1 parent 8c2abcf commit cd1d2e3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/python_build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Python Build
name: Build and Test

on:
- push
push:
release:
types: [create]

jobs:
build:
build_python_dist:
runs-on: ubuntu-22.04

steps:
Expand All @@ -18,14 +21,24 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install build toml
- name: Build
run: |
python -mbuild .
make dist
- name: upload_artifact
uses: actions/upload-artifact@v3
with:
name: Python Distributions
path: dist/*

- name: Check Version consistency
if: github.ref_type == "tag"
shell: python
run: |
import toml
with open('pyproject.toml', 'rt') as f:
result = toml.load(f)
assert 'v'+result['project']['version'] == '${{github.ref_name}}'

0 comments on commit cd1d2e3

Please sign in to comment.