@@ -2,9 +2,9 @@ name: Test and Release
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [master]
66 pull_request :
7- branches : [ master ]
7+ branches : [master]
88
99jobs :
1010 pre-commit :
3030 matrix :
3131 python-version : ["3.12"]
3232 config :
33- - {
34- name : " Linux" ,
35- os : ubuntu-latest
36- }
33+ - { name: "Linux", os: ubuntu-latest }
3734 # - {
3835 # name: "MacOSX",
3936 # os: macos-latest
@@ -48,50 +45,54 @@ jobs:
4845 shell : bash
4946
5047 steps :
51- - name : Checkout
52- uses : actions/checkout@v2
53-
54- - name : Set up Python ${{ matrix.python-version }}
55- uses : actions/setup-python@v2
56- with :
57- python-version : ${{ matrix.python-version }}
58-
59- - name : Install trame-vtk.js
60- run : |
61- bash .fetch_externals.sh
62-
63- - name : Install dependencies
64- run : |
65- pip install .[dev]
66- pip install -r tests/requirements.txt
67- playwright install
68-
69- - name : Install OSMesa for Linux
70- if : matrix.config.os == 'ubuntu-latest'
71- run : |
72- sudo apt-get update
73- sudo apt-get install -y libosmesa6-dev
74-
75- - name : Run Tests
76- run : |
77- # Run the tests with coverage so we get a coverage report too
78- coverage run --source . -m pytest ./tests
79- # Print the coverage report
80- coverage report -m
81-
82- - name : Upload Coverage to Codecov
83- uses : codecov/codecov-action@v3
84-
85- - name : Upload pytest test results
86- uses : actions/upload-artifact@v4
87- if : always()
88- with :
89- name : pytest-results-${{ matrix.config.name }}
90- path : |
91- tests/refs/*.yml
92- tests/refs/**/*.png
93- assets/**
94- retention-days : 1
48+ - name : Checkout
49+ uses : actions/checkout@v2
50+
51+ - name : Set up Python ${{ matrix.python-version }}
52+ uses : actions/setup-python@v2
53+ with :
54+ python-version : ${{ matrix.python-version }}
55+
56+ # -----------------------------------------------------------------------
57+ # Make that step a manual one and pushing files to the repo
58+ # -----------------------------------------------------------------------
59+ # - name: Install trame-vtk.js
60+ # run: |
61+ # bash .fetch_externals.sh
62+ # -----------------------------------------------------------------------
63+
64+ - name : Install dependencies
65+ run : |
66+ pip install .[dev]
67+ pip install -r tests/requirements.txt
68+ playwright install
69+
70+ - name : Install OSMesa for Linux
71+ if : matrix.config.os == 'ubuntu-latest'
72+ run : |
73+ sudo apt-get update
74+ sudo apt-get install -y libosmesa6-dev
75+
76+ - name : Run Tests
77+ run : |
78+ # Run the tests with coverage so we get a coverage report too
79+ coverage run --source . -m pytest ./tests
80+ # Print the coverage report
81+ coverage report -m
82+
83+ - name : Upload Coverage to Codecov
84+ uses : codecov/codecov-action@v3
85+
86+ - name : Upload pytest test results
87+ uses : actions/upload-artifact@v4
88+ if : always()
89+ with :
90+ name : pytest-results-${{ matrix.config.name }}
91+ path : |
92+ tests/refs/*.yml
93+ tests/refs/**/*.png
94+ assets/**
95+ retention-days : 1
9596
9697 release :
9798 needs : [pre-commit, pytest]
@@ -104,7 +105,6 @@ jobs:
104105 id-token : write # IMPORTANT: mandatory for trusted publishing
105106 contents : write # IMPORTANT: mandatory for making GitHub Releases
106107
107-
108108 steps :
109109 - name : Checkout
110110 uses : actions/checkout@v4
0 commit comments