Skip to content

Commit

Permalink
say no to mamba, hello uv
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed May 14, 2024
1 parent abd1fe7 commit 864d91d
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 16 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
cache-to: type=gha,mode=max
outputs: |
type=registry,push-by-digest=true,name-canonical=true
type=docker
test:
needs: build
Expand All @@ -60,18 +61,24 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Python test environment
uses: mamba-org/setup-micromamba@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
environment-file: environment.yml
cache-environment: true
python-version: '3.12'

- name: Install uv
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.1.43/uv-installer.sh | sh

- name: Install test requirements
run: uv pip install --system -r requirements.txt --no-deps

- name: Run tests
shell: bash -l {0} # required to activate the conda environment
Expand Down
12 changes: 0 additions & 12 deletions environment.yml

This file was deleted.

4 changes: 4 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
docker-compose~=1.29
pytest~=7.4
requests~=2.31
pytest-docker~=2.0
78 changes: 78 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in
attrs==23.2.0
# via
# jsonschema
# pytest-docker
bcrypt==4.1.3
# via paramiko
certifi==2024.2.2
# via requests
cffi==1.16.0
# via
# cryptography
# pynacl
charset-normalizer==3.3.2
# via requests
cryptography==42.0.7
# via paramiko
distro==1.9.0
# via docker-compose
docker==7.0.0
# via docker-compose
docker-compose==1.29.2
# via -r requirements.in
dockerpty==0.4.1
# via docker-compose
docopt==0.6.2
# via docker-compose
idna==3.7
# via requests
iniconfig==2.0.0
# via pytest
jsonschema==3.2.0
# via docker-compose
packaging==24.0
# via
# docker
# pytest
paramiko==3.4.0
# via docker
pluggy==1.5.0
# via pytest
pycparser==2.22
# via cffi
pynacl==1.5.0
# via paramiko
pyrsistent==0.20.0
# via jsonschema
pytest==7.4.4
# via
# -r requirements.in
# pytest-docker
pytest-docker==2.2.0
# via -r requirements.in
python-dotenv==0.21.1
# via docker-compose
pyyaml==5.4.1
# via docker-compose
requests==2.31.0
# via
# -r requirements.in
# docker
# docker-compose
setuptools==69.5.1
# via jsonschema
six==1.16.0
# via
# dockerpty
# jsonschema
# websocket-client
texttable==1.7.0
# via docker-compose
urllib3==2.2.1
# via
# docker
# requests
websocket-client==0.59.0
# via docker-compose

0 comments on commit 864d91d

Please sign in to comment.