Bump pyright from 1.1.388 to 1.1.389 in /tictactoe_python in the python-minor group #570
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run the tests on the kotlin version of tictactoe | |
name: kotlin | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./tictactoe_kotlin | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'oracle' # See 'Supported distributions' for available options | |
java-version: '21' | |
cache: 'gradle' | |
- name: Setup Gradle 8.9 | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: 8.9 | |
- name: Make gradle executable | |
run: chmod +x ./gradlew | |
# Execute gradle build command with stacktrace flag | |
- name: Build with gradle | |
run: ./gradlew build --stacktrace # Execute gradle script to build project | |
# Execute gradle script to perform lint check | |
- name: Lint check | |
run: ./gradlew lint | |
- name: Generate lint report | |
uses: actions/upload-artifact@v4 | |
with: # Define extra parameters | |
name: lint_report.html # Name of the artifact to be uploaded | |
path: tictactoe_kotlin/app/build/reports/ # Specifies the path where the artifact to be uploaded is located | |
# Execute gradle script to execute unit tests | |
- name: Execute unit tests | |
run: ./gradlew test --stacktrace | |
# Generates tests reports as an artifact | |
- name: Generate test report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: unit_tests_report.html | |
path: tictactoe_kotlin/app/build/reports/tests/testDebugUnitTest/ | |
connected-tests: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./tictactoe_kotlin | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'oracle' | |
cache: 'gradle' | |
- name: Setup Gradle 8.9 | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: 8.9 | |
- name: Make gradle executable | |
run: chmod +x ./gradlew | |
- name: Enable KVM group perms | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Run connected tests | |
uses: ReactiveCircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
target: default | |
arch: x86_64 | |
working-directory: ./tictactoe_kotlin | |
script: ./gradlew connectedCheck | |
# Generates tests reports as an artifact | |
- name: Generate test report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: android_tests_report.html | |
path: tictactoe_kotlin/app/build/reports/androidTests/connected |