Skip to content

Commit

Permalink
ci: Use Poetry action
Browse files Browse the repository at this point in the history
Signed-off-by: yshalsager <[email protected]>
  • Loading branch information
yshalsager committed Dec 11, 2023
1 parent abe89d2 commit 6dc6561
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 18 deletions.
51 changes: 33 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,27 @@ jobs:
build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
architecture: [ 'x64', 'x86' ]
python-version: [ "3.10" ]
poetry-version: [ "1.6.1" ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
cache: 'pip'
cache-dependency-path: 'poetry.lock'
- name: Install requirements
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
run: poetry install
- name: Caching
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Download ffmpeg
run: |
Invoke-WebRequest https://github.com/GyanD/codexffmpeg/releases/download/4.4/ffmpeg-4.4-essentials_build.zip -O ffmpeg.zip
Expand All @@ -48,14 +55,18 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
architecture: 'x64'
cache: 'pip'
cache-dependency-path: 'poetry.lock'
- name: Install requirements
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
run: poetry install
- name: Caching
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Package
run: pyinstaller ${{ github.event.inputs.spec }} && zip -r9 AlMufarrigh-macOS-app.zip dist/*
- uses: actions/upload-artifact@v3
Expand All @@ -68,14 +79,18 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
architecture: 'x64'
cache: 'pip'
cache-dependency-path: 'poetry.lock'
- name: Install requirements
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
run: poetry install
- name: Caching
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Package
run: pyinstaller ${{ github.event.inputs.spec }} && zip -r9 AlMufarrigh-linux-x64.zip dist/*
- uses: actions/upload-artifact@v3
Expand Down
3 changes: 3 additions & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[virtualenvs]
create = true
in-project = true

0 comments on commit 6dc6561

Please sign in to comment.