-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (46 loc) · 1.28 KB
/
package_testing.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
49
name: iniabu-tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
MAIN_PYTHON_VERSION: "3.13"
jobs:
# Build and test
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install depdencies
run: |
sudo apt-get update
sudo apt-get -y install libegl1-mesa
- name: Install the latest version of rye
uses: eifinger/setup-rye@v4
with:
version: 'latest'
- name: Sync Rye
run: |
rye pin ${{ matrix.python-version }}
rye sync
- name: Run Tests for python interface
run: |
rye test
rye run test_doc
- name: Run Lint on one python
if: ${{ matrix.python-version == env.MAIN_PYTHON_VERSION }}
run: rye lint
- name: Run Pytest with coverage
if: ${{ matrix.python-version == env.MAIN_PYTHON_VERSION }}
run: |
rye run test_cov
- name: Upload coverage reports to Codecov
if: ${{ matrix.python-version == env.MAIN_PYTHON_VERSION && github.repository_owner == 'galactic-forensics' }}
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}