-
Notifications
You must be signed in to change notification settings - Fork 4
83 lines (74 loc) · 2.55 KB
/
test.yml
File metadata and controls
83 lines (74 loc) · 2.55 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: tests
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- python: "3.14"
toxenv: flake8
os: ubuntu-latest
- python: "3.14"
toxenv: mypy
os: ubuntu-latest
- python: "3.14"
toxenv: pylint
os: ubuntu-latest
- python: "3.14"
toxenv: black
os: ubuntu-latest
- python: "3.10"
toxenv: py310
os: ubuntu-latest
- python: "3.11"
toxenv: py311
os: ubuntu-latest
- python: "3.12"
toxenv: py312
os: ubuntu-latest
- python: "3.13"
toxenv: py313
os: ubuntu-latest
- python: "3.14"
toxenv: py314
os: ubuntu-latest
- python: "pypy-3.10"
toxenv: pypy310
os: ubuntu-latest
- python: "pypy-3.11"
toxenv: pypy311
os: ubuntu-latest
- python: "3.14"
toxenv: py314
os: macos-latest
- python: "3.14"
toxenv: py314
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies from develop branch
if: github.ref != 'refs/heads/master' && !(github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master')
run: |
echo "Installing dependencies from develop branches instead of PyPI"
python -m pip install git+https://github.com/PermutaTriangle/comb_spec_searcher.git@develop
python -m pip install git+https://github.com/PermutaTriangle/Permuta.git@develop
# Install the project in development mode to work with the new dependencies
python -m pip install -e .
# Verify installed versions
echo "Checking installed comb_spec_searcher version:"
python -c "import comb_spec_searcher; print(comb_spec_searcher.__version__)"
echo "Checking installed permuta version:"
python -c "import permuta; print(permuta.__version__)"
- name: install dependencies
run: python -m pip install --upgrade pip tox
- name: run
env:
TOXENV: ${{ matrix.toxenv }}
run: tox
- name: setup
run: pip install -e .