From a02aa8f83d141d0b1693409717f5378b89bcd125 Mon Sep 17 00:00:00 2001 From: Jjungs7 Date: Sun, 29 Oct 2023 19:02:26 +0900 Subject: [PATCH] fix: workflows - test on pull requests - build and push image to registry --- ...age.yml => python-lint-test-multiple-versions.yml} | 11 +---------- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) rename .github/workflows/{python-package.yml => python-lint-test-multiple-versions.yml} (69%) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-lint-test-multiple-versions.yml similarity index 69% rename from .github/workflows/python-package.yml rename to .github/workflows/python-lint-test-multiple-versions.yml index bb8f890..a99979b 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-lint-test-multiple-versions.yml @@ -1,23 +1,14 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Python package - +name: python-lint-test-multiple-versions on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] - jobs: build: - runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.11"] - steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/Dockerfile b/Dockerfile index cd42738..e9af473 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,6 @@ WORKDIR /app COPY requirements.txt . RUN pip install -r requirements.txt -COPY poolini /app/ +COPY poolini poolini/ CMD ["python", "-m", "poolini.discord_server"]