Skip to content

Commit

Permalink
first pass at entire build - lots of todos left
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Jan 17, 2024
1 parent b78c83e commit 661eda3
Show file tree
Hide file tree
Showing 7 changed files with 626 additions and 51 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/actions/setup-python-env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Setup Python env
description: Install Python & Hatch
inputs:
python-version:
description: 'Version of Python to Install'
required: true
default: '3.9'
runs:
using: "composite"
steps:
- name: "Set up Python ${{ inputs.python-version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ inputs.python-version }}"

- name: Install Hatch
shell: bash
run: |
python -m pip install --user --upgrade pip
python -m pip install hatch
16 changes: 3 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,10 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
- name: "Set up Python & Hatch - 3.11"
uses: ./.github/actions/setup-python-env
with:
python-version: '3.11'

- name: "Install build specific python dependencies"
run: |
python -m pip install --user --upgrade pip
python -m pip install --upgrade wheel twine check-wheel-contents
python -m pip --version
- name: "Install Hatch"
shell: bash
run: pip3 install hatch
python-version: "3.11"

- name: "Build Python Package"
run: |
Expand Down
Loading

0 comments on commit 661eda3

Please sign in to comment.