Development version tests #710
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: Development version tests | |
on: | |
push: | |
branches: | |
- main | |
- 'stable/**' | |
pull_request: | |
branches: | |
- main | |
- 'stable/**' | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
dev-tests: | |
name: dev-tests (${{ matrix.os }}, py${{ matrix.python-version }}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies (development versions) | |
shell: bash | |
run: | | |
python -m pip install --upgrade pip tox | |
python -m pip install toml fire | |
python tools/extremal_dependency_versions.py pin_dependencies dev --inplace | |
- name: Modify tox.ini for more thorough check | |
shell: bash | |
run: | | |
sed -i.bak -E '/#.*CI:[[:space:]]*skip-next-line/I{N;d;}' tox.ini | |
cat tox.ini | |
- name: Test using tox environment | |
shell: bash | |
run: | | |
# eval $(ssh-agent -s) | |
# ssh-add - <<< '${{ secrets.PRIVATE_SSH_KEY }}' | |
pver=${{ matrix.python-version }} | |
tox -e py${pver/./} |