Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
weclaw1 committed Jun 7, 2024
1 parent 3a30498 commit 967874e
Showing 1 changed file with 20 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
name: Python package
name: Inbac Ci

on: [push]

jobs:
Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
cache: 'poetry'
- name: Install tkinter
run: |
sudo apt-get update
sudo apt-get install python3-tk
- name: Install and set up Poetry
run: |
pipx install poetry
poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
poetry install
Expand All @@ -30,23 +29,23 @@ jobs:
run: |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac/inbac.py
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: inbac-${{ runner.os }}
path: dist

Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
cache: 'poetry'
- name: Install and set up Poetry
run: |
pipx install poetry
poetry config virtualenvs.in-project true
- name: Install dependencies
run: |
poetry install
Expand All @@ -57,28 +56,26 @@ jobs:
run: |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac\inbac.py
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: inbac-${{ runner.os }}
path: dist

MacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
cache: 'poetry'
- name: Install tkinter
run: |
brew install python-tk
- name: Install and set up Poetry
run: |
pipx install poetry
poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
poetry install
Expand All @@ -89,7 +86,7 @@ jobs:
run: |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac/inbac.py
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: inbac-${{ runner.os }}
path: dist

0 comments on commit 967874e

Please sign in to comment.