diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..88f8471 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,27 @@ +name: Deployment +on: push + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo 'run tests' + + deploy-dev: + name: Deploy(Dev) + needs: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo 'dev deployment' + + deploy-production: + name: Deploy(Production) + needs: deploy-dev + runs-on: ubuntu-latest + environment: production + steps: + - uses: actions/checkout@v2 + - run: echo 'production deployment' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2403019..762b345 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,27 +1,27 @@ -name: CI +# name: CI -on: - pull_request: - branches: ["main"] - push: - branches: ["main"] +# on: +# pull_request: +# branches: ["main"] +# push: +# branches: ["main"] -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 +# jobs: +# test: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout repository +# uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.11" +# - name: Set up Python +# uses: actions/setup-python@v5 +# with: +# python-version: "3.11" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt +# - name: Install dependencies +# run: | +# python -m pip install --upgrade pip +# pip install -r requirements.txt - - name: Run tests - run: pytest -q +# - name: Run tests +# run: pytest -q \ No newline at end of file