Skip to content

Commit

Permalink
Merge pull request #3 from dkmar/actions
Browse files Browse the repository at this point in the history
Now passing test action and we're adding publishing
  • Loading branch information
dkmar authored Feb 21, 2024
2 parents e1df587 + 833bbc0 commit 67be49b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish Python Package

on:
release:
types: [created]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install '.[test]'
- name: Run tests
run: |
pytest
deploy:
runs-on: ubuntu-latest
needs: [test]
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install setuptools wheel build
- name: Build
run: |
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion wordle/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


@click.group()
@click.version_option()
@click.version_option(package_name='wordle-solver')
def cli():
"Utility for solving and exploring wordle puzzles."

Expand Down

0 comments on commit 67be49b

Please sign in to comment.