-
Notifications
You must be signed in to change notification settings - Fork 0
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
2e3ed4a
commit 0939869
Showing
1 changed file
with
40 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,40 @@ | ||
name: linux-build-and-validation | ||
|
||
on: | ||
push: | ||
branches: [ '**' ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
env: | ||
BUILD_DIR: ${{ github.workspace }}/build | ||
TEST_DIR: ${{ github.workspace }}/build/tests | ||
|
||
jobs: | ||
python-venv-setup: | ||
runs-on: [ 'ubuntu-22.04' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
|
||
- name: python3-setting-up | ||
run: | | ||
sudo apt update && \ | ||
sudo apt install build-essential software-properties-common -y && \ | ||
sudo add-apt-repository ppa:deadsnakes/ppa && \ | ||
sudo apt update && \ | ||
sudo apt install python3.11 python3.11-venv -y | ||
- name: python3-venv | ||
run: | | ||
python3.11 -m venv venv && \ | ||
source venv/bin/activate | ||
build-repository: | ||
needs: [ 'python-venv-setup' ] | ||
runs-on: [ 'ubuntu-22.04' ] | ||
|
||
steps: | ||
|
||
- name: look inside | ||
run: ls && python3 --version |