Skip to content

Commit

Permalink
馃懛 project self dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Dec 6, 2023
1 parent 199f015 commit caeb28b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Python Dependencies
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip wheel
python -m pip install -q hatch pre-commit
python -m pip install -q -e .
hatch env create
python -m pip install -q "${{ github.workspace }}"
hatch --version
- name: Lint
id: lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip wheel
python -m pip install -q hatch pre-commit
python -m pip install -q -e .
python -m pip install -q "${{ github.workspace }}"
hatch --version
- name: Build package
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ jobs:
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip wheel
python -m pip install -q hatch pre-commit
python -m pip install -q -e .
hatch -v env create
python -m pip install -q "${{ github.workspace }}"
hatch --version
- name: Release
run: hatch run gen:release
Expand Down Expand Up @@ -60,9 +59,9 @@ jobs:
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip wheel
python -m pip install -q hatch pre-commit
python -m pip install -q -e .
python -m pip install -q "${{ github.workspace }}"
hatch --version
- name: Set Up GitHub Actions User
run: |
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Default Python
if: matrix.python != '3.11'
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip wheel
python -m pip install -q hatch pre-commit
python -m pip install -q "${{ github.workspace }}"
hatch --version
- name: Test Suite
run: |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ parallel = true
source_pkgs = ["hatch_pip_compile", "tests"]

[tool.hatch.env]
requires = ["hatch-pip-compile", "hatch-mkdocs"]
requires = ["hatch-mkdocs"]

[tool.hatch.env.collectors.mkdocs.docs]
path = "mkdocs.yaml"
Expand Down

0 comments on commit caeb28b

Please sign in to comment.