update @native
This commit is contained in:
parent
f88a564dfa
commit
e4051c005a
@ -1,45 +1,42 @@
|
||||
name: Setup Native Action
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
branches:
|
||||
- main
|
||||
strategy:
|
||||
matrix:
|
||||
python:
|
||||
- 3.12.7
|
||||
jobs:
|
||||
# test:
|
||||
# runs-on: host
|
||||
# steps:
|
||||
# - name: Checkout Repository
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# ref: ${{ github.ref_name }}
|
||||
|
||||
# - name: test venv
|
||||
# run: ${{ github.workspace }}/venv/bin/pip --version
|
||||
jobs:
|
||||
setup_native:
|
||||
if: contains(github.event.head_commit.message, '@native')
|
||||
runs-on: host
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.12.7]
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.ref_name }}
|
||||
|
||||
- name: Set up Python ${{ matrix.python }}
|
||||
uses: actions/setup-python@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Create python virtualenv
|
||||
run: python3 -m venv venv
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Setup
|
||||
run: make install
|
||||
- name: Create Python virtual environment
|
||||
run: python -m venv venv
|
||||
|
||||
- name: Activate virtual environment and install dependencies
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
make install
|
||||
|
||||
- name: Generate Config
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
make gen_config
|
||||
|
||||
- name: Generate Config
|
||||
run: make gen_config
|
||||
|
||||
- name: Run Tests
|
||||
run: make run_test
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
make run_test
|
||||
|
Loading…
Reference in New Issue
Block a user