Skip to content

Commit

Permalink
ci(gitlab): separate Linux and Windows job
Browse files Browse the repository at this point in the history
The Linux job will have a runner available sooner this way.

Run for pull requests.
  • Loading branch information
dbohdan committed Sep 29, 2023
1 parent 1f0764a commit 7fe88c3
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
name: CI

on: [push]

on: [push, pull_request]
jobs:
test:
runs-on: ["ubuntu-latest", "windows-latest"]
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install poetry tox
- name: Test with tox
run: |
tox run
windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
Expand Down

0 comments on commit 7fe88c3

Please sign in to comment.