diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index bf4f989..e7f10f7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml index 1243e59..29ded85 100644 --- a/.github/workflows/pyinstaller.yml +++ b/.github/workflows/pyinstaller.yml @@ -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: diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 6580871..e975cde 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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