Skip to content

Commit

Permalink
tidying up (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg authored Sep 26, 2024
1 parent a75f6fb commit 4c5728d
Show file tree
Hide file tree
Showing 17 changed files with 439 additions and 607 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length=232
extend-ignore = E203
25 changes: 10 additions & 15 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,23 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .
- name: Install test dependencies
run: pip install -r requirements.txt
pip install -e .[dev]
- name: pytest
run: pytest
- name: Code Coverage
uses: codecov/codecov-action@v4
env:
OS: ${{ matrix.os }}
PYTHON: '3.12'
with:
env_vars: OS,PYTHON

deploy:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: [test, lint]

runs-on: ubuntu-latest

name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/parserator
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -74,8 +72,5 @@ jobs:
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
49 changes: 0 additions & 49 deletions .travis.yml

This file was deleted.

29 changes: 0 additions & 29 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit 4c5728d

Please sign in to comment.