Skip to content

Commit

Permalink
Merge branch 'poetry'
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Feb 2, 2023
2 parents 5e37c5c + fe33e4f commit d156c2d
Show file tree
Hide file tree
Showing 68 changed files with 3,350 additions and 1,092 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Setuptools Build for PyPI
name: Build for PyPI
on:
release:
types: [published]
Expand All @@ -10,7 +10,7 @@ jobs:
- name: ⬇️ Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-depth: 1
- name: 🌰 Cache conda
uses: actions/cache@v3
with:
Expand All @@ -22,9 +22,11 @@ jobs:
environment-file: pydna_build_environment.yml
environment-name: pydna_build_environment
extra-specs: python=3.11

- name: 🐍 micromamba info
shell: bash -l {0}
run: micromamba info

- name: 🐍 micromamba list
shell: bash -l {0}
run: micromamba list
Expand All @@ -33,9 +35,25 @@ jobs:
shell: bash -l {0}
run: git describe --tags

- name: 🔩 Check version
shell: bash -l {0}
run: poetry version

- name: 🔩 Set version
shell: bash -l {0}
run: poetry dynamic-versioning

- name: 🔩 Check version
shell: bash -l {0}
run: poetry version

- name: Git tag
shell: bash -l {0}
run: git describe --tags

- name: 🔩 Build pypi wheel package
shell: bash -l {0}
run: python -m build
run: poetry build

- name: 🔼 Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pydna_test_and_coverage_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
shell: bash -l {0}
run: micromamba list

- name: 🔩 Set version
shell: bash -l {0}
run: poetry dynamic-versioning

- name: 🔩 Install from source
shell: bash -l {0}
run: pip install --editable . --no-deps
Expand All @@ -67,4 +71,4 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
fail_ci_if_error: true
Loading

0 comments on commit d156c2d

Please sign in to comment.