diff options
author | Christian Cleberg <hello@cmc.pub> | 2025-03-29 00:23:35 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cmc.pub> | 2025-03-29 00:23:35 -0500 |
commit | ea85cd451eb052e80b38a04e25918290094325b4 (patch) | |
tree | 443fccfc7fe2a23443ac993e84436a757b3efc77 /.github/workflows | |
download | nba-scores-ea85cd451eb052e80b38a04e25918290094325b4.tar.gz nba-scores-ea85cd451eb052e80b38a04e25918290094325b4.tar.bz2 nba-scores-ea85cd451eb052e80b38a04e25918290094325b4.zip |
initial commit
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pylint.yml | 23 | ||||
-rw-r--r-- | .github/workflows/python-publish.yml | 34 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..a50eb8a --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Analysing the code with pylint + run: | + pylint -d R0801 -d W0311 -d R0914 $(git ls-files '*.py')
\ No newline at end of file diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..0073c6f --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,34 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/nba-cli + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1
\ No newline at end of file |