Skip to content

Commit

Permalink
draft workflow to publish build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbara Miller committed Oct 30, 2024
1 parent 3a8b9d2 commit 93cde9b
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/publish-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Publish Artifacts

on:
push:
branches:
- main
- master

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/



formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Create virtual environment
run: python -m venv venv

- name: Install black
run: |
./venv/bin/pip install --upgrade pip
./venv/bin/pip install black
- name: Run formatting check
run: make ck-format

0 comments on commit 93cde9b

Please sign in to comment.