-
Notifications
You must be signed in to change notification settings - Fork 17
33 lines (33 loc) · 968 Bytes
/
test.yaml
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
name: Test
on: [push, pull_request]
concurrency:
group: py-test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.10']
galaxy-branch: ['release_22.01', 'dev']
exclude:
# this results in lengthy and expensive numpy wheel builds
- python-version: '3.10'
galaxy-branch: 'release_22.01'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Precreate virtualenv
run: python -m venv tests/galaxy_venv
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e test
env:
GRAVITY_TEST_GALAXY_BRANCH: ${{ matrix.galaxy-branch }}
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2