update @native
Some checks failed
Setup Docker Action / setup_docker (3.12.7) (push) Has been skipped
Setup Native Action / setup_native (3.12.7) (push) Has been cancelled

This commit is contained in:
hoangvv 2025-01-15 09:17:49 +07:00
parent f88a564dfa
commit e4051c005a

View File

@ -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