Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'tldr-pages/tldr-python-client'
needs: ['release-build']
environment:

environment:
name: pypi
url: https://pypi.org/project/tldr/

permissions:
id-token: write # Required for accessing OpenID Connect (OIDC) token for PyPI trusted publisher

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,34 +151,34 @@ jobs:

permissions:
contents: read

strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: ${{ matrix.python-version }}

- name: Install developer dependencies
run: |
python3 -m pip install -U pip
python3 -m pip install -U pytest pytest-runner flake8

- name: Install tldr dependencies
run:
python3 -m pip install -r requirements.txt --user

- name: Lint codebase
run: python3 -m flake8

- name: Run test suite
run: python3 -m pytest tests/

- name: Test tldr cli
run: |
python3 -m pip install .
Expand Down
Loading