Skip to content

Commit

Permalink
Merge pull request #14 from foundation-model-stack/setup-github-action
Browse files Browse the repository at this point in the history
ci: fix setup python step in github action
  • Loading branch information
aluu317 authored Oct 30, 2024
2 parents fc51ac9 + b96b5b3 commit 9fe6a57
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,29 @@ jobs:
deploy:

runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- setup: "3.11"
tox: "py311"

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version:
- setup: '3.11'
tox: 'py311'
python-version: ${{ matrix.python-version.setup }}


- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Build and test with tox
run: tox -e py311
run: tox -e ${{ matrix.python-version.tox }}
- name: Build and check wheel package
run:
tox -e build,twinecheck
Expand Down

0 comments on commit 9fe6a57

Please # to comment.