Skip to content

Commit

Permalink
Test CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
fmind committed Feb 24, 2024
1 parent ec0ae8c commit 12942e9
Showing 1 changed file with 17 additions and 36 deletions.
53 changes: 17 additions & 36 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,20 @@
on: push
# on:
# push:
# pull_request:
# branches:
# - main
# - '*'
# concurrency:
# group: on-push-main
# cancel-in-progress: true
# jobs:
# main:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - uses: actions/checkout@v4
# - run: pipx install poetry
# - uses: actions/setup-python@v5
# with:
# python-version: 3.12
# cache: 'poetry'
# - run: poetry install
# # - run: poetry run inv docs
# # - run: poetry run inv checks
# - run: poetry run inv packages
# # - uses: JamesIves/github-pages-deploy-action@v4
# # with:
# # folder: docs/
# # branch: gh-pages
# - uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: ghcr.io/fmind/mlops-python-package:latest
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
checks:
runs-on: ubuntu-latest
steps:
- run: pipx install poetry
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
cache: "poetry"
- run: poetry install --only main,checks
- run: poetry run inv checks

0 comments on commit 12942e9

Please sign in to comment.