Skip to content

Bump pytest from 8.3.3 to 8.3.4 #1417

Bump pytest from 8.3.3 to 8.3.4

Bump pytest from 8.3.3 to 8.3.4 #1417

Workflow file for this run

name: Python application
on: [push, pull_request]
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install system dependancies
run: |
sudo apt-get update
sudo apt-get install slapd ldap-utils
- name: Remove apparmor restrictions on slapd
run: |
sudo apt-get install apparmor-utils
sudo aa-complain /usr/sbin/slapd
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install poetry
uses: abatilo/actions-poetry@v3.0.1
with:
poetry-version: 1.3.0
- name: Install python dependancies
run: |
poetry install --extras=docs
- name: Run tests
run: |
export TZ=Australia/Melbourne
poetry run make -C docs html
poetry run isort --check --diff tldap
poetry run flake8 tldap
poetry run python -m tldap.test.slapd python -m pytest --cov=tldap --junitxml=test-reports/junit.xml
publish-pypi-prod:
name: Publish Pypi Prod
runs-on: ubuntu-latest
needs: [test]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install poetry
uses: abatilo/actions-poetry@v3.0.1
with:
poetry-version: 1.3.0
- name: Install python dependancies
run: |
poetry install
- name: Verify git tag vs. version
run: |
VERSION=${GITHUB_REF#refs/tags/}
test "$(poetry version)" = "python-tldap ${VERSION}"
- name: Create packages
run: |
poetry build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_PASSWORD }}