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