Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyagreco committed Feb 20, 2024
1 parent 1066b2e commit a540199
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: build

on:
push:
branches: [main]
paths-ignore:
- "**.md"
- "img/**"
pull_request:
branches: [main]
paths-ignore:
- "**.md"
- "img/**"
workflow_dispatch:
inputs:
manual:
description: "Trigger the workflow manually"
required: false

permissions:
contents: read

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Get Current Required Python Version
id: get-python-versions
run: |
MINIMUM_VERSION=$(grep -oP '__version_minimum_python__ = "\K.*(?=")' discbase/_version.py)
echo "CURRENT_VERSION=$MINIMUM_VERSION" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.CURRENT_VERSION }}

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
make deps
- name: Build Package
run: make pkg-build

- name: Check Package
run: |
twine check dist/*

0 comments on commit a540199

Please sign in to comment.