Skip to content

Commit

Permalink
ci: setup attempt #3
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyk committed Dec 17, 2024
1 parent 8c53153 commit ff83727
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,22 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Install tox
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh

- name: Install Python
if: matrix.env != '3.13'
run: uv python install --python-preference only-managed ${{ matrix.env }}

- name: Setup tests
run: tox run -vv --notest --skip-missing-interpreters false
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.env }}

- name: Run tests
run: tox run --skip-pkg-install
env:
Expand All @@ -49,21 +54,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
- uses: hynek/setup-cached-uv@v2

- name: Install Python
if: matrix.env != '3.13'
run: uv python install --python-preference only-managed ${{ matrix.env }}

- name: Install in dev mode
run: |
uv venv
uv pip install -e .[dev]
- name: Try to import on Linux
if: runner.os == 'Linux'
run: |
source .venv/bin/activate
python -Ic 'import belogging; print(belogging.__version__)'
if: runner.os == 'Linux'

0 comments on commit ff83727

Please sign in to comment.