@@ -65,13 +65,24 @@ jobs:
6565 run : bundle exec rubocop
6666
6767 - name : Run tests
68+ if : matrix.ruby-version != '3.4' || matrix.rails-version != 'rails-8.0'
6869 run : bundle exec appraisal ${{ matrix.rails-version }} rspec --tag '~generator'
6970 env : # Dummy environment variables for local providers
7071 OLLAMA_API_BASE : http://localhost:11434/v1
7172 GPUSTACK_API_BASE : http://localhost:11444/v1
7273 GPUSTACK_API_KEY : test
74+ SKIP_COVERAGE : true
75+
76+ - name : Run full test suite with coverage (latest Ruby/Rails)
77+ if : matrix.ruby-version == '3.4' && matrix.rails-version == 'rails-8.0'
78+ run : bundle exec appraisal ${{ matrix.rails-version }} rspec
79+ env : # Dummy environment variables for local providers
80+ OLLAMA_API_BASE : http://localhost:11434/v1
81+ GPUSTACK_API_BASE : http://localhost:11444/v1
82+ GPUSTACK_API_KEY : test
7383
7484 - name : Upload coverage to Codecov
85+ if : matrix.ruby-version == '3.4' && matrix.rails-version == 'rails-8.0'
7586 uses : codecov/codecov-action@v5
7687 env :
7788 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
@@ -88,34 +99,11 @@ jobs:
8899 OLLAMA_API_BASE : http://localhost:11434/v1
89100 GPUSTACK_API_BASE : http://localhost:11444/v1
90101 GPUSTACK_API_KEY : test
91-
92- generator-tests :
93- runs-on : ubuntu-latest
94-
95- steps :
96- - uses : actions/checkout@v4
97-
98- - name : Set up Ruby
99- uses : ruby/setup-ruby@v1
100- with :
101- ruby-version : ' 3.4'
102- bundler-cache : true
103-
104- - name : Install dependencies
105- run : |
106- bundle install
107- bundle exec appraisal rails-8.0 bundle install
108-
109- - name : Run generator tests
110- run : bundle exec appraisal rails-8.0 rspec --tag generator
111- env : # Dummy environment variables for local providers
112- OLLAMA_API_BASE : http://localhost:11434/v1
113- GPUSTACK_API_BASE : http://localhost:11444/v1
114- GPUSTACK_API_KEY : test
102+ SKIP_COVERAGE : true
115103
116104 publish :
117105 name : Build + Publish
118- needs : [ test, generator-tests]
106+ needs : test
119107 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
120108 runs-on : ubuntu-latest
121109
0 commit comments