Skip to content

Commit

Permalink
Update pypitest-publish.yml to use flit instead of setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
hcwinsemius authored Sep 20, 2024
1 parent 23f3222 commit f4d764c
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/pypitest-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,37 @@ jobs:
runs-on: ubuntu-latest

steps:
#
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: OpenCV dependencies
run: |
sudo apt update
sudo apt install libegl1 libopengl0 -y
- name: Install dependencies
sudo apt install libegl1 libopengl0 ffmpeg -y
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install tomli flit twine
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
run: |
git clean -xdf
git restore -SW .
flit build
python -m twine check dist/*
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_TEST_TOKEN }}
repository_url: https://test.pypi.org/legacy/
verbose: true
skip_existing: true

0 comments on commit f4d764c

Please sign in to comment.