-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (46 loc) · 1.32 KB
/
test-development.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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/./}