Skip to content

Commit

Permalink
Tests CI content
Browse files Browse the repository at this point in the history
  • Loading branch information
susuhahnml committed Apr 25, 2024
1 parent a6df0a5 commit 2481a39
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Run CI tests
name: run CI test

on:
push:
branches:
- main
- master
branches: [devel, main, master, wip]
pull_request:
workflow_call:

env:
FORCE_COLOR: "3"
Expand All @@ -17,29 +16,26 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: "checkout repository"
uses: actions/checkout@v3

- name: "setup python 3.9"
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9

- name: "setup python 3.11"
uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11

- name: "setup python 3.12"
uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12

- name: install nox
run: python -m pip install nox
- name: install requirements
run: python -m pip install nox pre-commit

- name: run pre-commit
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pre-commit run --all --show-diff-on-failure

- name: run tests
run: nox
run: nox

0 comments on commit 2481a39

Please sign in to comment.