-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b57fd8
commit 4fe6964
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build & Run with python2 | ||
run-name: ${{ github.actor }} is Trying GitHub Actions | ||
on: [push] | ||
|
||
jobs: | ||
test-python2: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 2.7 | ||
run: sudo apt-get install python2 | ||
|
||
- name: Install Tkinter | ||
run: sudo apt-get install python-tk | ||
|
||
- name: Display Python version | ||
run: python2 -c "import sys; print(sys.version)" | ||
|
||
- name: Install GRO2LAM setup | ||
run: python2 setup -t | ||
|
||
- name: Install xvfb | ||
run: sudo apt install xvfb | ||
- name: Check xvfb | ||
run: ps -ef | grep xvfb | ||
|
||
- name: before_script 1 | ||
run: "export DISPLAY=:99.0" | ||
- name: before_script 2 | ||
run: sleep 3 # give xvfb some time to start | ||
|
||
- name: Run Gro2Lam | ||
run: xvfb-run python2 run |