-
Notifications
You must be signed in to change notification settings - Fork 67
53 lines (47 loc) · 1.93 KB
/
Copy pathtest-python-package.yml
File metadata and controls
53 lines (47 loc) · 1.93 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
# This workflow will use Nox to run tests and lint for the supported Python versions, and upload the test coverage data.
name: Test
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Test on ${{ matrix.os }} with all supported Python versions
runs-on: ${{ format('{0}', matrix.os) }} # "-latest" is added here so we can use OS in the format expected by CodeCov
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- name: Setup Nox
uses: fjwillemsen/setup-nox2@v4
- name: Setup Poetry
uses: Gr1N/setup-poetry@v9
- run: poetry self add poetry-plugin-export
- uses: julia-actions/setup-julia@v3
with:
version: '1.11' # when changed, also see `require_julia` in noxfile.py and the Julia version in Project.toml
- name: Run tests with Nox
run: |
rm -rf .nox
pip install nox-poetry
nox -- skip-gpu skip-julia github-action
- name: Run Julia tests with Nox
run: |
rm -rf .nox
pip install nox-poetry
nox --session tests-3.14 -- skip-gpu github-action
# [ -d "~" ] && mkdir -p ~/.julia/registries
# - name: Upload Coverage report to CodeCov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage
# os: ${{ matrix.os }}
# fail_ci_if_error: false # option to Specify if CI pipeline should fail when Codecov runs into errors during upload