From 334255d925d48e0b22900cd61f507dfc7a5c6e14 Mon Sep 17 00:00:00 2001 From: Micael Jarniac Date: Tue, 4 Jul 2023 00:15:25 -0300 Subject: [PATCH] build(ci): experimenting --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .github/workflows/nox.yml | 7 +++---- .github/workflows/pre-commit.yml | 2 +- 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a35818e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + +jobs: + pre-commit: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - uses: pre-commit/action@v3.0.0 + + Nox: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: snok/install-poetry@v1 + - uses: daisylb/setup-nox@v2.1.0 + - run: nox --force-color diff --git a/.github/workflows/nox.yml b/.github/workflows/nox.yml index ea92924..72b722b 100644 --- a/.github/workflows/nox.yml +++ b/.github/workflows/nox.yml @@ -6,12 +6,11 @@ on: branches: [main] jobs: - build: + run: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Install Poetry - uses: snok/install-poetry@v1 + - uses: snok/install-poetry@v1 - uses: daisylb/setup-nox@v2.1.0 - - run: nox + - run: nox --force-color diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index cef956c..62629ea 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -6,7 +6,7 @@ on: branches: [main] jobs: - pre-commit: + run: runs-on: ubuntu-latest steps: