Adaptation for github actions
This commit is contained in:
parent
f3fa784848
commit
e09d1091f3
3 changed files with 30 additions and 20 deletions
29
.github/workflows/docker.yml
vendored
29
.github/workflows/docker.yml
vendored
|
@ -1,23 +1,24 @@
|
||||||
name: docker
|
name: docker
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
# branches: [ main ]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
python-version: [3.11.6]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout code
|
||||||
- uses: actions/setup-python@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
- name: Set up rye
|
||||||
python-version: "3.11.0"
|
uses: atu4403/setup-rye-multiOS@v1
|
||||||
- name: Install poetry
|
- name: Sync dependencies using rye
|
||||||
uses: abatilo/actions-poetry@v2
|
run: |
|
||||||
with:
|
rye pin ${{ matrix.python-version }}
|
||||||
poetry-version: 1.2.2
|
rye sync
|
||||||
- name: Install dependencies
|
rye build --wheel --out dist
|
||||||
run: poetry install
|
|
||||||
- name: Build project
|
|
||||||
run: poetry build
|
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
|
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
|
||||||
|
|
19
.github/workflows/pyinstaller.yml
vendored
19
.github/workflows/pyinstaller.yml
vendored
|
@ -1,14 +1,23 @@
|
||||||
name: pyinstaller
|
name: pyinstaller
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
# branches: [ main ]
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
python-version: [3.11.6]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up rye
|
||||||
|
uses: atu4403/setup-rye-multiOS@v1
|
||||||
|
- name: Sync dependencies using rye
|
||||||
|
run: |
|
||||||
|
rye pin ${{ matrix.python-version }}
|
||||||
|
rye sync
|
||||||
- name: Package application
|
- name: Package application
|
||||||
uses: JackMcKew/pyinstaller-action-linux@python3.10
|
uses: JackMcKew/pyinstaller-action-linux@python3.10
|
||||||
with:
|
with:
|
||||||
|
|
2
.github/workflows/pytest.yml
vendored
2
.github/workflows/pytest.yml
vendored
|
@ -6,7 +6,7 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest]
|
||||||
python-version: [3.11.6]
|
python-version: [3.11.6]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
Loading…
Add table
Reference in a new issue