Skip to content

Commit

Permalink
Try without venv
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Gibson committed Mar 18, 2024
1 parent 959c8a5 commit de2a367
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/test_publish_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
path: actions

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand All @@ -45,20 +45,17 @@ jobs:
- name: Setup Virtual Environment
run: |
python -m venv venv
source venv/bin/activate
make setup
pip install -U -q pip-tools
python pip-sync requirements/base/base.txt requirements/dev/dev.txt
- name: Run Pre-commit
run: |
source venv/bin/activate
pre-commit install
pre-commit run --all
python pre-commit install
python pre-commit run --all
- name: Run Tests
run: |
source venv/bin/activate
pytest
python pytest
- name: Send Failure Message on Slack if Tests Fail
if: ${{ failure() }}
Expand Down Expand Up @@ -125,19 +122,17 @@ jobs:
restore-keys: |
requirements-local-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-
- name: Setup Virtual Environment
run: python -m venv venv
# - name: Setup Virtual Environment
# run: python -m venv venv

- name: Configure pip
run: |
source venv/bin/activate
make setup
pip install -U -q pip-tools
python pip-sync requirements/base/base.txt requirements/dev/dev.txt
- name: Build and Publish
run: |
source venv/bin/activate
ls -la
flit publish
python flit publish
- name: Send Failure Message on Slack if Build/Publish Fails
if: ${{ failure() }}
Expand Down

0 comments on commit de2a367

Please sign in to comment.