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
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
# branches: [ main ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
python-version: [3.11.6]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11.0"
|
||||
- name: Install poetry
|
||||
uses: abatilo/actions-poetry@v2
|
||||
with:
|
||||
poetry-version: 1.2.2
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
- name: Build project
|
||||
run: poetry build
|
||||
- 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
|
||||
rye build --wheel --out dist
|
||||
- name: Build the Docker image
|
||||
run: |
|
||||
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
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
# branches: [ main ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
python-version: [3.11.6]
|
||||
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
|
||||
uses: JackMcKew/pyinstaller-action-linux@python3.10
|
||||
with:
|
||||
|
|
2
.github/workflows/pytest.yml
vendored
2
.github/workflows/pytest.yml
vendored
|
@ -6,7 +6,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
os: [ubuntu-latest]
|
||||
python-version: [3.11.6]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
Loading…
Add table
Reference in a new issue