Skip to content

Commit

Permalink
Update test-n-publish.yml to only build
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear authored Nov 24, 2023
1 parent b1b16af commit a5fcad6
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/test-n-publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: test-n-publish
name: buildtest

on: [push, pull_request]
on:
push:
paths:
- "machinestate.py"
pull_request:
paths:
- "machinestate.py"

jobs:
test-n-publish:
buildtest:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -52,13 +58,6 @@ jobs:
coverage run -p `which machinestate` --html
coverage run -p `which machinestate` --html -o output.html
- uses: codecov/codecov-action@v3
- name: Build package
run: |
python setup.py build sdist
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(matrix.os, 'ubuntu')
uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true
user: __token__

password: ${{ secrets.pypi_password }}

0 comments on commit a5fcad6

Please sign in to comment.