Skip to content

Commit

Permalink
pip install is stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Mar 16, 2024
1 parent 1dc7733 commit e352241
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make python3-pyflakes python3-pycodestyle python3-pip
sudo pip install .
sudo apt-get install -y make python3-pyflakes python3-pycodestyle python3-pip python3-pytest
sudo pip install ruff mypy types-PyYAML
- name: Run lint tests
run: make check
Expand Down Expand Up @@ -39,8 +39,8 @@ jobs:
- name: Install test dependencies
run: |
sudo apt-get update
sudo apt-get install -y make python3-pyflakes python3-pycodestyle python3-pip python3-pytest
sudo pip install .
sudo apt-get install -y make python3-pip python3-pytest
sudo pip install pytest_container
# HACK: Ubuntu 22.04 has podman 3.4, which isn't compatible with podman-remote 4 in our tasks container
# This PPA is a backport of podman 4.3 from Debian 12; drop this when moving `runs-on:` to ubuntu-24.04
Expand All @@ -67,4 +67,4 @@ jobs:
echo '${{ secrets.GITHUB_TOKEN }}' > github-token
PRN=$(echo "$GITHUB_REF" | cut -f3 -d '/')
# tasks/run-local.sh -p $PRN -t ~/.config/github-token
python3 -m pytest --github-token=github-token
sudo python3 -m pytest --github-token=github-token
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ classifiers = [
]

dependencies = [
"pyyaml",
]

version = "1"

[project.optional-dependencies]
test = [
"ruff",
"mypy",
"pytest",
"pytest_container",
"pyyaml",
"types-PyYAML",
]

version = "1"

[tool.setuptools]
packages = []

Expand Down

0 comments on commit e352241

Please sign in to comment.