Skip to content

Commit

Permalink
Merge pull request #74 from bsipocz/CI_update_versions_and_use_hashes
Browse files Browse the repository at this point in the history
CI: update workflow versions
  • Loading branch information
bsipocz authored Jun 15, 2024
2 parents 292a5ac + bc69cf5 commit 8b7a982
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
if: ((github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || contains(github.event.pull_request.labels.*.name, 'Build wheels'))

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: 3.8

Expand All @@ -41,7 +41,7 @@ jobs:
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14
with:
user: __token__
password: ${{ secrets.pypi_password }}
24 changes: 15 additions & 9 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
include:
- os: macos-latest
- os: macos-12
python-version: 3.7
toxenv: py37-test-pytestoldest
- os: ubuntu-latest
Expand Down Expand Up @@ -46,26 +46,32 @@ jobs:
toxenv: py311-test-pytest72
- os: ubuntu-latest
python-version: '3.11'
toxenv: py310-test-pytest73
toxenv: py311-test-pytest73
- os: windows-latest
python-version: '3.11'
toxenv: py310-test-pytest74
toxenv: py311-test-pytest74
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytest81
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytest82
- os: macos-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
python-version: '3.12'
toxenv: py312-test-pytestdev
- os: windows-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
python-version: '3.12'
toxenv: py312-test-pytestdev
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytestdev

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ deps =
pytest72: pytest==7.2.*
pytest73: pytest==7.3.*
pytest74: pytest==7.4.*
pytest81: pytest==8.1.*
pytest82: pytest==8.2.*
pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest

commands =
Expand Down

0 comments on commit 8b7a982

Please sign in to comment.