Skip to content

Commit

Permalink
Update GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinse committed Apr 7, 2024
1 parent a2e286e commit b8619ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,22 @@ jobs:

runs-on: ubuntu-latest
strategy:
fail-fast: false
fail-fast: true
matrix:
python-version: ["3.x"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/setup.py'
- name: Install gtk3
run: |
sudo apt install libgtk-3-dev
cache-dependency-path: '**/setup.cfg'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install .[test,dist]
python -m pip install .[dev]
- name: Test with pytest
run: |
pytest -v
python -m pytest
19 changes: 7 additions & 12 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,23 @@ jobs:

runs-on: ubuntu-latest
strategy:
fail-fast: false
fail-fast: true
matrix:
python-version: ["3.x"]

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install gtk3
run: |
sudo apt install libgtk-3-dev
cache: 'pip'
cache-dependency-path: '**/setup.cfg'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade pip setuptools
python -m pip install build
# - name: Build 2.7 package
# if: ${{ matrix.python-version == '2.7' }}
# run: python -m build --wheel
- name: Build package
if: ${{ matrix.python-version != '2.7' }}
run: python -m build
# - name: Publish package to TestPyPI
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
Expand Down

0 comments on commit b8619ca

Please sign in to comment.