Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/note.txt

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/Pipfile

This file was deleted.

184 changes: 0 additions & 184 deletions .github/workflows/Pipfile.lock

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI / CD
on: [push]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
id-token: write
contents: read
strategy:
matrix:
python-version: ["3.9","3.11"]
steps:
- uses: actions/checkout@v4
- name: Install Python, pipenv and Pipfile packages
uses: kojoru/prepare-pipenv@v1
with:
python-version: ${{ matrix.python-version }}
- name: Turn on 'editable' mode
run: |
pipenv install -e .
- name: Test with pytest
run: |
pipenv install pytest
pipenv --venv
pipenv run python -m pytest
deliver:
needs: [build]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Install Python, pipenv and Pipfile packages
uses: kojoru/prepare-pipenv@v1
- name: Build package
run: |
pipenv install build
pipenv run python -m build .
- name: Publish to PyPI test server
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
54 changes: 0 additions & 54 deletions .github/workflows/event-logger.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/requirements.txt

This file was deleted.

12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# ignore any cloned repos
repos/

# ignore generated reports
reports/

# mac junk
.DS_Store

Expand All @@ -16,6 +22,9 @@ __pycache__/
# C extensions
*.so

# PyPI authentication
*pypirc

# Distribution / packaging
.Python
build/
Expand All @@ -30,7 +39,6 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down Expand Up @@ -96,7 +104,7 @@ ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
.python-version
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand Down
18 changes: 18 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
examplepackagefb1258 = {file = ".", editable = true}
coverage = "*"
pytest-cov = "*"
twine = "*"
pyfortunecookie = {file = ".", editable = true}
pytest = "*"
build = "*"

[dev-packages]

[requires]
python_version = "3"
Loading