Use 3.11.7 in pypi publish action #484
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release/**' | |
- 'hotfix/**' | |
paths-ignore: | |
- '**.md' | |
- '.gitignore' | |
- 'LICENSE' | |
- '.env*' | |
- 'Dockerfile*' | |
- '*.sh' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
- '.gitignore' | |
- 'LICENSE' | |
- '.env*' | |
- 'Dockerfile*' | |
- '*.sh' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9, "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt install capnproto | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry config virtualenvs.create false | |
poetry install --no-interaction --no-ansi | |
- name: Test with pytest | |
env: | |
PODPING_HIVE_ACCOUNT: ${{ secrets.PODPING_HIVE_ACCOUNT }} | |
PODPING_HIVE_POSTING_KEY: ${{ secrets.PODPING_HIVE_POSTING_KEY }} | |
run: | | |
pytest | |
test-runslow: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ "3.11" ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt install capnproto | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry config virtualenvs.create false | |
poetry install --no-interaction --no-ansi | |
- name: Test with pytest | |
env: | |
PODPING_HIVE_ACCOUNT: ${{ secrets.PODPING_HIVE_ACCOUNT }} | |
PODPING_HIVE_POSTING_KEY: ${{ secrets.PODPING_HIVE_POSTING_KEY }} | |
run: | | |
pytest --runslow |