Skip to content

Commit

Permalink
POC
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-fawad committed Jul 21, 2024
1 parent 18eb652 commit 600fd28
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 73 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/build.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/code-quality.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: PR Pipeline
on: [pull_request]
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Restore cached .venv
uses: actions/cache/restore@v4
with:
key: venv-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
path: .venv
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config --list
make install
- name: Cache .venv
uses: actions/cache/save@v4
with:
key: venv-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
path: .venv
test:
name: Test
needs: [build]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Restore cached .venv
uses: actions/cache/restore@v4
with:
key: venv-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
path: .venv
- name: Run tests
run: make test
lint:
name: Lint
needs: [build]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Restore cached .venv
uses: actions/cache/restore@v4
with:
key: venv-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
path: .venv
- name: Run linter
run: make lint

0 comments on commit 600fd28

Please sign in to comment.