Bump actions/upload-artifact from 3 to 4 #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/actions/upload-artifact | |
name: Build and upload mask with DRC | |
on: | |
pull_request: | |
push: | |
jobs: | |
test_mask: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 12 | |
matrix: | |
python-version: ["3.10"] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- name: Install dependencies | |
run: | | |
make install | |
- name: build mask | |
run: | | |
make mask | |
pip freeze > requirements.txt | |
cp requirements.txt build/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: mask | |
path: build |