Skip to content

Commit f49ab19

Browse files
authored
Run upstream tests nightly, commits to main/dev, and on labeled PRs (#519)
* Run upstream tests nightly, on commits to main/develop, and on labeled PRs * Update name * Update conditions
1 parent 47eb62f commit f49ab19

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
shell: bash -l {0}
2626
strategy:
2727
matrix:
28-
environment: [test-py311, test-py312, upstream, min-deps, minio]
28+
environment: [test-py311, test-py312, min-deps, minio]
2929
steps:
3030
- uses: actions/checkout@v4
3131
- uses: prefix-dev/[email protected]

.github/workflows/upstream.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Upstream
2+
3+
on:
4+
push:
5+
branches: [ "main" , "develop"]
6+
paths-ignore:
7+
- 'docs/**'
8+
pull_request:
9+
branches: [ "main" , "develop"]
10+
types: [ labeled ]
11+
paths-ignore:
12+
- 'docs/**'
13+
schedule:
14+
- cron: "0 0 * * *"
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
test-upstream:
22+
name: ${{ matrix.environment }}-build
23+
if: |
24+
github.event_name == 'push' ||
25+
github.event_name == 'schedule' ||
26+
(github.event_name == 'pull_request' && github.event.label.name == 'test-upstream')
27+
runs-on: ubuntu-latest
28+
defaults:
29+
run:
30+
shell: bash -l {0}
31+
strategy:
32+
matrix:
33+
environment: [upstream]
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: prefix-dev/[email protected]
37+
with:
38+
pixi-version: v0.41.4
39+
environments: ${{ matrix.environment }}
40+
41+
- name: List installed libraries
42+
run: |
43+
pixi install --environment ${{ matrix.environment }}
44+
pixi list --environment ${{ matrix.environment }}
45+
46+
- name: Running Tests
47+
run: |
48+
pixi run -e ${{ matrix.environment }} run-tests-xml-cov
49+
50+
- name: Upload code coverage to Codecov
51+
uses: codecov/[email protected]
52+
with:
53+
file: ./coverage.xml
54+
flags: unittests
55+
env_vars: OS,PYTHON
56+
name: codecov-umbrella
57+
fail_ci_if_error: false
58+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)