Marco071086 commented on PR #1777: URL: https://github.com/apache/buildstream/pull/1777#issuecomment-2823155552
[Settings](https://github.com/Marco071086/transformers/settings) You can always [contact support](https://github.com/contact) with any questions. transformers/.github/workflows / django.yml in main Edit Preview Indent mode Spaces Indent size 2 Line wrap mode No wrap Editing django.yml file contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 name: Django CI on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install Dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run Tests run: | python manage.py test Use Control + Shift + m to toggle the tab key moving focus. Alternatively, use esc then tab to move to the next interactive element on the page. Use Control + Space to trigger autocomplete in most situations. Help Panel navigation Marketplace Documentation Getting started with a workflow To help you get started, this guide shows you some basic examples. For the full GitHub Actions documentation on [workflows](https://github.com/Marco071086/transformers/tree/main/.github/workflows), see "Configuring workflows." Customizing when workflow runs are triggered Set your workflow to run on push events to the [main](https://github.com/Marco071086/transformers/tree/main) and release/* branches on: push: branches: - main - release/* Set your workflow to run on pull_request events that target the main branch on: pull_request: branches: - main Set your workflow to run every day of the week from Monday to Friday at 2:00 UTC on: schedule: - cron: "0 2 * * 1-5" For more information, see "Events that trigger workflows." Manually running a workflow To manually run a workflow, you can configure your workflow to use the workflow_dispatch event. This enables a "Run workflow" button on the Actions tab. on: workflow_dispatch: For more information, see "Manually running a workflow." Running your jobs on different operating systems GitHub Actions provides hosted runners for Linux, Windows, and macOS. To set the operating system for your job, specify the operating system using runs-on: jobs: my_job: name: deploy to staging runs-on: ubuntu-22.04 The available virtual machine types are: ubuntu-latest, ubuntu-22.04, or ubuntu-20.04 windows-latest, windows-2022, or windows-2019 macos-latest, macos-13, or macos-12 For more information, see "Virtual environments for GitHub Actions." Using an action Actions are reusable units of code that can be built and distributed by anyone on GitHub. You can find a variety of actions in GitHub [Marketplace](https://github.com/Marco071086/transformers/new/main?filename=.github%2Fworkflows%2Fdjango.yml&workflow_template=ci%2Fdjango#), and also in the official Actions repository. To use an action, you must specify the repository that contains the action. We also recommend that you specify a Git tag to ensure you are using a released version of the action. - name: Setup Node uses: actions/setup-node@v4 with: node-version: '20.x' For more information, see "Workflow syntax for GitHub Actions." Running a command You can run commands on the job's virtual machine. - name: Install Dependencies run: npm install For more information, see "Workflow syntax for GitHub Actions." Running a job across a matrix of operating systems and runtime versions You can automatically run a job across a set of different values, such as different versions of code libraries or operating systems. For example, this job uses a matrix strategy to run across 3 versions of Node and 3 operating systems: jobs: test: name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: node_version: ['18.x', '20.x'] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node_version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node_version }} - name: npm install, build and test run: | npm install npm run build --if-present npm test -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
