Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Aug 7, 2023
1 parent bb4a70e commit 7cfb5e8
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Linting
on: [push]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: python -m pip install black[jupyter]
- run: |
black . --check
33 changes: 33 additions & 0 deletions .github/workflows/pin_requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Generate Requirements Files

on: [push]


jobs:
generate-requirements:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ["3.9"]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install pip-tools
run: pip install pip-tools

- name: Generate requirements file
run: pip-compile --extra web --output-file requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt pyproject.toml

- name: Upload requirements file
uses: actions/upload-artifact@v3
with:
name: requirements-${{ matrix.os }}-${{ matrix.python-version }}
path: requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt

0 comments on commit 7cfb5e8

Please sign in to comment.