Skip to content

Commit

Permalink
Minor cleanup to CI
Browse files Browse the repository at this point in the history
Norming a few details, like python specification and venv usage.
  • Loading branch information
joehoover committed Aug 1, 2024
1 parent 232da99 commit 1dd085b
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Create and activate virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run pylint
run: |
pylint --recursive y tests/**/*.py
Expand All @@ -35,8 +45,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Create and activate virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: pip install -r requirements-dev.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run unit tests
run: pytest tests/unit

Expand Down

0 comments on commit 1dd085b

Please sign in to comment.