Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pixi and rattler build for conda-auth #23

Merged
merged 5 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 11 additions & 85 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,61 +38,7 @@ jobs:
- 'recipe/**'
- '.github/workflows/tests.yml'

windows:
needs: changes
if: needs.changes.outputs.code == 'true'

runs-on: windows-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.11"]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
init-shell: >-
powershell
cache-environment: false
cache-downloads: true
post-cleanup: 'all'

- name: micromamba info (pwsh)
shell: pwsh
run: micromamba info

- name: Install dev dependencies
shell: pwsh
run: |
micromamba install --file requirements.dev.txt --yes

- name: micromamba list
shell: pwsh
run: micromamba list

- name: Install conda-auth
shell: pwsh
run: |
pip install -e .

- name: Test with pytest
shell: pwsh
run: |
pytest --doctest-modules --cov-report=xml --cov=conda_auth

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
flags: ${{ runner.os }},${{ matrix.python-version }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

unix-like:
tests:
needs: changes
if: needs.changes.outputs.code == 'true'

Expand All @@ -101,45 +47,25 @@ jobs:
fail-fast: true
matrix:
python-version: ["3.8", "3.11"]
os: ["macos-latest", "ubuntu-latest"]
os: ["macos-latest", "ubuntu-latest", "windows-latest"]

steps:
- uses: actions/checkout@v3

- uses: mamba-org/setup-micromamba@v1
- uses: prefix-dev/setup-[email protected]
with:
generate-run-shell: true
environment-file: environment.yml
init-shell: >-
bash
cache-environment: false
cache-downloads: true
post-cleanup: 'all'

- name: micromamba info
shell: bash -el {0}
run: micromamba info
pixi-version: v0.6.0
cache: true

- name: Install dev dependencies
shell: bash -el {0}
- name: Install dependencies
run: |
micromamba install --file requirements.dev.txt --yes
pixi add python=${{ matrix.python-version }}
pixi install

- name: micromamba list
shell: bash -el {0}
run: micromamba list

- name: Install conda-auth
shell: bash -el {0}
run: |
pip install -e .

- name: Test with pytest
shell: micromamba-shell {0}
run: |
pytest --doctest-modules --cov-report=xml --cov=conda_auth
- name: Run test and generate coverage
run: pixi run testcov

- name: Upload Coverage to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
flags: ${{ runner.os }},${{ matrix.python-version }}
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,9 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/

# build artifacts
output/
.channel/

.pixi/
9 changes: 0 additions & 9 deletions environment.yml

This file was deleted.

Loading